This method of the ComLib Class maps a raw pointer to a Java-callable wrapper. This method simulates a C-style cast of an arbitrary pointer to an interface pointer.
public static native Object ptrToUnknown(Class unknownClass, int ptr, boolean isFreeThreaded);
An instance of interfaceClass.
unknownClass | The class that is to be mapped to. |
ptr | The raw interface pointer that is mapped. |
isFreeThreaded | Indicates whether the object is free or apartment threaded. |
This method was added as of versions 2437 through 2925 of the Microsoft virtual machine.