This method of the ComLib Class maps a COM object to a raw pointer to a specified interface, incrementing the object's reference count in the process. The returned interface pointer is callable on the current thread.
public static native int unknownToPtr(Object obj, _Guid iid);
obj | Any Java object that can be mapped to a COM object. |
iid | The IID of the interface to map to. |
This method was added as of versions 2437 through 2925 of the Microsoft virtual machine.