Export (0) Print
Expand All
COM
Expand Minimize

CreatePointerMoniker function

Creates a pointer moniker based on a pointer to an object.

Syntax


HRESULT CreatePointerMoniker(
  _In_opt_  LPUNKNOWN punk,
  _Out_     LPMONIKER *ppmk
);

Parameters

punk [in, optional]

A pointer to an IUnknown interface on the object to be identified by the resulting moniker.

ppmk [out]

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.

Return value

This function can return the standard return values E_OUTOFMEMORY, E_UNEXPECTED, and S_OK.

Remarks

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.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

Objbase.h

Library

Ole32.lib

DLL

Ole32.dll

See also

IMoniker

 

 

Community Additions

ADD
Show:
© 2014 Microsoft