Microsoft SDK for Java

ptrToUnknown

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.

Syntax

public static native Object ptrToUnknown(Class unknownClass, int ptr, boolean isFreeThreaded);

Return Value

An instance of interfaceClass.

Parameters

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.

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.