Creates a pointer moniker based on a pointer to an object.
HRESULT CreatePointerMoniker( LPUNKNOWN punk, LPMONIKER *ppmk );
A pointer to an IUnknown interface on the object to be identified by the resulting moniker.
The address of an IMoniker* pointer variable that receives the interface pointer to the new pointer moniker. When successful, the function has called AddRef on the moniker and the caller is responsible for calling Release. When an error occurs, the returned interface pointer has a NULL value.
This function can return the standard return values E_OUTOFMEMORY, E_UNEXPECTED, and S_OK.
A pointer moniker wraps an existing interface pointer in a moniker that can be passed to those interfaces that require monikers. Pointer monikers allow an object that has no persistent representation to participate in a moniker-binding operation.
Pointer monikers are not commonly used, so this function is not often called.
|Minimum supported client||Windows 2000 Professional [desktop apps | UWP apps]|
|Minimum supported server||Windows 2000 Server [desktop apps | UWP apps]|