|
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
Related LinksSoftware for Delphi and C++ Builder developers Software for Visual Studio .NET developers Software for Visual Basic 6 developers Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps Win32 Programmer's Reference (win32.hlp) Win32 Multimedia Programmer's Reference (mmedia.hlp) Microsoft Windows Pen API Programmer's Reference (penapi.hlp) Microsoft Windows Sockets 2 Reference (sock2.hlp) Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp) Unix Manual Pages
|