This topic has not yet been rated - Rate this topic

CreatePointerMoniker function

Applies to: desktop apps | Metro style apps

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

Minimum supported server

Windows 2000 Server

Header

Objbase.h

Library

Ole32.lib

DLL

Ole32.dll

See also

IMoniker

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ