The ILicenseMgr Interface of the com.ms.com package supports the use of licensed Component Object Model (COM) components or controls in a Java application.
public interface ILicenseMgr extends IUnknown { // Methods public IUnknown createFromPackage(int index, IUnknown punkOuter, int ctxFlags); public IUnknown createInstance(String clsid, IUnknown punkOuter, int ctxFlags); public IUnknown createWithLic(String lic, String clsid, IUnknown punkOuter, int ctxFlags); public void setPackage(String url); }
A licensed control cannot be instantiated except by legal users. Using a design-time license, however, enables you to embed the control in your applications. When you distribute the application, a run-time license allows the control to be instantiated when the application is run.
An HTML page containing licensed controls must include an associated license package (.lpk) file, which stores the run-time control licenses. Use the License Package Authoring Tool (lpk_tool.exe) included with the Microsoft® ActiveX® SDK to create a .lpk file. For further information on the ActiveX licensing scheme, refer to the ActiveX SDK.
To use the ILicenseMgr class with a licensed control, call the createWithLic method and specify the license string explicitly to create an instance of the control.
An example of a licensed component is the _DBEngine component in Data Access Objects (DAO). You must use the ILicenseMgr class when you use DAO.
Note For compatibility with the Microsoft SDK for Java 1.0, the following methods instantiate all COM objects on the main apartment thread of the process. Because of the significant thread-switching overhead, these methods should not be used unless the object requires licensing information.
IUnknown | +--ILicenseMgr