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 |