Microsoft SDK for Java

createInstance

This method of the ILicenseMgr Interface creates an instance of the specified COM class.

Syntax

public IUnknown createInstance(String clsid, IUnknown punkOuter, int ctxFlags);

Warning   In general, this method should not be called. The best way to create an instance of a COM class is to use the new operator on the Java wrapper generated by the jactivex tool.

Return Value

Returns an instance of the specified COM class.

Parameters

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, null.
ctxFlags The ComContext value that represents the context that the new object is created in.

Exceptions

com.ms.com.ComFailException if there is an error instantiating the class.

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