Microsoft SDK for Java

LicenseMgr Class

The LicenseMgr Class of the com.ms.com package works with the ILicenseMgr interface to enable you to use licensed Component Object Model (COM) components or controls in your Java application.

public final class LicenseMgr implements IUnknown,ILicenseMgr
{
  // Methods
  public native IUnknown createFromPackage(int index,
        IUnknown punkOuter, int ctxFlags);
  public native IUnknown createInstance(String clsid,
        IUnknown punkOuter, int ctxFlags);
  public native IUnknown createWithLic(String lic, String clsid,
        IUnknown punkOuter, int ctxFlags);
  public native void setPackage(String url);
}

Example

In the LicenseMgr class, methods are not called directly. Instead, you create an instance of LicenseMgr and use the ILicenseMgr interface to manipulate the instance, as in the following example:

ILicenseMgr licmgr = (ILicenseMgr)new LicenseMgr();
   // use licmgr interface

For more information on how to use licensed COM components, see the ILicenseMgr interface.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.