The ComLib Class contains the following methods:
declareMessagePumpThread enables apartment model hosting.
executeOnContext marshals to the context bound to the supplied object and executes the run() method of the supplied object that implements Runnable.
freeUnusedLibraries releases all unused libraries on the current thread and the virtual machine's host single-threaded apartment thread.
getGuidOf returns the GUID from the @com.class or @com.interface attributed class.
isEqualUnknown compares the COM identity of two Java objects. If the two objects have equal IUnknown* pointers, they have the same COM identity.
jcdwClassOffsetOf retrieves the offset of a COM data structure that represents an instance of a Java proxy class.
jcdwClassSizeOf retrieves the size (measured in bytes) of a COM data structure that represents instances of the class.
jcdwOffsetOf retrieves the offset of a COM data structure (measured in bytes) that is represented by a Java proxy.
jcdwSizeOf retrieves the size of a COM data structure (measured in bytes) that is represented by a Java proxy.
makeProxyRef increments the reference count on a COM object.
ownsCleanup determines whether Java is responsible for doing cleanup tasks for the COM object.
ptrRelease releases a reference on the interface, given a raw COM interface pointer.
ptrToStruct maps a raw pointer onto a structure.
ptrToUnknown maps a raw pointer to a Java-callable wrapper.
release forces Java to release all outstanding reference counts on a native COM object.
setDataWrapperSize allocates and binds memory to an existing data wrapper.
startMTAThread initializes the thread inside the multi-threaded COM apartment. This method replaces ThreadStartMTA.
supportsInterface determines whether a COM object supports a particular interface by using that object's QueryInterface method.
ThreadStartMTA initializes a thread without initializing COM. This method is deprecated. It is replaced by startMTAThread.
unknownToPtr maps a COM object to a raw pointer to a specified interface.