CreatePointerMoniker
Creates a pointer moniker based on a specified interface pointer.
WINOLEAPI CreatePointerMoniker(
LPUNKNOWN punk,
| //Interface pointer to be used
|
LPMONIKER FAR *ppmk
| //Receives the pointer moniker
|
);
|
|
Parameters
punk
Points to an interface pointer to the object to be identified by the resulting
moniker.
ppmk
Receives an
IMoniker interface pointer to the new pointer moniker. The returned pointer is NULL if
an error occurs; if non-NULL, the function has called
IUnknown::AddRef on the parameter and the caller is responsible for calling
IUnknown::Release.
Return Values
S_OK
Indicates the pointer moniker was created successfully.
E_UNEXPECTED
Indicates an unexpected error occurred.
E_OUTOFMEMORY
Indicates insufficient memory.
Comments
You rarely need to call this function.
A pointer moniker is essentially a wrapping of an interface pointer that
allows it to 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. Binding a pointer moniker is done by calling the pointer's
IUnknown::QueryInterface method.
See Also
IMoniker - Pointer Moniker Implementation
- Software for developers
-
Delphi Components
.Net Components
Software for Android Developers
- More information resources
-
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
- Databases for Amazon shops developers
-
Amazon Categories Database
Browse Nodes Database