com.jniwrapper.win32.com.impl
Class IClassFactory2Impl
java.lang.Object
com.jniwrapper.Parameter
com.jniwrapper.win32.com.impl.IUnknownImpl
com.jniwrapper.win32.com.impl.IClassFactoryImpl
com.jniwrapper.win32.com.impl.IClassFactory2Impl
- All Implemented Interfaces:
- AutoDeleteParameter, PointerParameter, IClassFactory, IClassFactory2, IUnknown
public class IClassFactory2Impl
- extends IClassFactoryImpl
- implements IClassFactory2
Represents COM interface IClassFactory2.
Fields inherited from class com.jniwrapper.Parameter |
V |
Method Summary |
java.lang.Object |
clone()
|
void |
createInstanceLic(IUnknown outer,
IUnknown reserved,
IID iid,
BStr bstrKey,
IUnknown result)
Creates an instance of the licensed object given a license key from IClassFactory2.requestLicKey(com.jniwrapper.UInt32, com.jniwrapper.win32.automation.types.BStr) |
IID |
getIID()
|
void |
getLicInfo(LicInfo licInfo)
Fills a licInfo structure with information on the licensing capabilities of this class factory. |
void |
requestLicKey(UInt32 reserved,
BStr key)
Creates and returns a license key that the caller can save and use later in calls to IClassFactory2.createInstanceLic(IUnknown, IUnknown, com.jniwrapper.win32.com.types.IID, com.jniwrapper.win32.automation.types.BStr, IUnknown) . |
Methods inherited from class com.jniwrapper.win32.com.impl.IUnknownImpl |
acceptIOPerformer, addRef, asVoidPointer, dumpVTBL, equals, fromVoidPointer, getDebugInfo, getInterfaceIdentifier, getLength, hashCode, invokeStandardVirtualMethod, invokeStandardVirtualMethod, invokeStandardVirtualMethod, invokeStandardVirtualMethod, invokeStandardVirtualMethod, invokeStandardVirtualMethod, invokeStandardVirtualMethod, invokeVirtualMethod, invokeVirtualMethod, invokeVirtualMethod, invokeVirtualMethod, invokeVirtualMethod, invokeVirtualMethod, isAutoDelete, isNull, isSameObject, queryInterface, queryInterface, read, release, setAutoDelete, setNull, setValue, write |
Methods inherited from class com.jniwrapper.Parameter |
, a, a, asReturnValue, b, dataBufferAssigned, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, indent, pop, push, read, read, setDataBuffer, toByteArray, write |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
INTERFACE_IDENTIFIER
public static final java.lang.String INTERFACE_IDENTIFIER
- See Also:
- Constant Field Values
IClassFactory2Impl
public IClassFactory2Impl()
IClassFactory2Impl
public IClassFactory2Impl(IUnknownImpl that)
throws ComException
- Throws:
ComException
IClassFactory2Impl
public IClassFactory2Impl(IUnknown that)
IClassFactory2Impl
public IClassFactory2Impl(CLSID clsid,
ClsCtx dwClsContext)
throws ComException
- Throws:
ComException
IClassFactory2Impl
public IClassFactory2Impl(CLSID clsid,
IUnknown pUnkOuter,
ClsCtx dwClsContext)
throws ComException
- Throws:
ComException
getLicInfo
public void getLicInfo(LicInfo licInfo)
throws ComException
- Description copied from interface:
IClassFactory2
- Fills a
licInfo
structure with information on the licensing capabilities of this class factory.
- Specified by:
getLicInfo
in interface IClassFactory2
- Parameters:
licInfo
- [out]
structure to be filled on output.
- Throws:
ComException
requestLicKey
public void requestLicKey(UInt32 reserved,
BStr key)
throws ComException
- Description copied from interface:
IClassFactory2
- Creates and returns a license key that the caller can save and use later in calls to
IClassFactory2.createInstanceLic(IUnknown, IUnknown, com.jniwrapper.win32.com.types.IID, com.jniwrapper.win32.automation.types.BStr, IUnknown)
.
- Specified by:
requestLicKey
in interface IClassFactory2
- Parameters:
reserved
- Reserved. Must be zero.key
- [out]
parameter that receives the license key.
- Throws:
ComException
createInstanceLic
public void createInstanceLic(IUnknown outer,
IUnknown reserved,
IID iid,
BStr bstrKey,
IUnknown result)
throws ComException
- Description copied from interface:
IClassFactory2
- Creates an instance of the licensed object given a license key from
IClassFactory2.requestLicKey(com.jniwrapper.UInt32, com.jniwrapper.win32.automation.types.BStr)
- Specified by:
createInstanceLic
in interface IClassFactory2
- Parameters:
outer
- [in]
parameter, points to controlling interface
of an aggregate, or null
if the object isn't being created
as part of an aggregate.reserved
- Unused. Must be null.iid
- identifier of the interface to be used to communicate with the newly created object.bstrKey
- license key previously obtained from IClassFactory2.requestLicKey(com.jniwrapper.UInt32, com.jniwrapper.win32.automation.types.BStr)
result
- [out]
parameter, instance implementing a
required interface.
- Throws:
ComException
getIID
public IID getIID()
- Overrides:
getIID
in class IClassFactoryImpl
clone
public java.lang.Object clone()
- Overrides:
clone
in class IClassFactoryImpl