IIUnknownStrategy.CreateInstancePointer(Void*) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an instance pointer that represents the specified IUnknown instance.
public:
void* CreateInstancePointer(void* unknown);
public void* CreateInstancePointer (void* unknown);
abstract member CreateInstancePointer : nativeptr<unit> -> nativeptr<unit>
Parameters
- unknown
- Void*
The IUnknown instance.
Returns
A pointer representing the unmanaged instance.
Remarks
This method is used to create an instance pointer that can be used to interact with the other members of this interface. For example, this method can return an IAgileReference instance for the provided IUnknown instance. The IAgileReference can be used in the QueryInterface and Release methods to enable creating thread-local instance pointers to use through the IAgileReference APIs instead of directly calling QueryInterface on the IUnknown.