Microsoft SDK for Java

createWithLic

This method of the LicenseMgr Class creates an instance of a licensed control. This method cannot be invoked directly. You must first cast the LicenseMgr object to the ILicenseMgr interface and invoke the method through the interface.

Syntax

public native IUnknown createWithLic(String lic, String clsid, IUnknown punkOuter, int ctxFlags);

Return Value

Returns a new instance of the specified licensed COM class.

Parameters

lic The license for the instantiated COM class.
clsid The class identifier (CLSID) of the instantiated COM class.
punkOuter The aggregating object if the object is being created as part of an aggregate; otherwise, the value is null.
ctxFlags The ComContext value that represents the context that the new object is created in.

Exceptions

com.ms.com.ComFailException if an error occurs while instantiating the class.

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