BindMoniker

HRESULT BindMoniker(pmk, reserved, iidResult, ppvResult)

Bind a moniker with the specified interface and return the result. This is strictly a helper function in that it uses no functionality which is not also available publicly. It has roughly the following implementation:


IBindCtx pbc;
CreateBindCtx(0, &pbc);
pmk->BindToObject(pbc, NULL, iidResult, ppvResult);
pbc->Release();

Argument

Type

Description

pmk

IMoniker*

The moniker which is to be bound.

reserved

DWORD

Reserved for future use; must be zero.

iidResult

REFIID

The interface by which the caller wishes to connect to the object.

ppvResult

void**

On successful return, a pointer to the resulting object is placed here.

return value

HRESULT

S_OK, union of IMoniker::BindToObject() & CreateBindCtx() errors