Microsoft SDK for Java

unknownToPtr

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.

Syntax

public static native int unknownToPtr(Object obj, _Guid iid);

Parameters

obj Any Java object that can be mapped to a COM object.
iid The IID of the interface to map to.

Remarks

This method was added as of versions 2437 through 2925 of the Microsoft virtual machine.

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