IBindCtx

A binding context (IBindCtx) is an object that binds a moniker to its target. This happens under the hood when you call BindMoniker, which is the typical usage.

BindMoniker(pMoniker, 0, IID_IUnknown, (void**)&pUnknown);

BindMoniker is actually a thin wrapper around IMoniker::BindToObject.

IBindCtx* pClassBindCtx;
CreateBindCtx(0&pClassBindCtx);
pMoniker->BindToObject(pClassBindCtx, NULL, IID_IUnknown, (void**)&pUnknown);
pClassBindCtx->Release();|

References

IBindCtx (objidl.h) - Win32 apps | Microsoft Learn BindMoniker function (objbase.h) - Win32 apps | Microsoft Learn IMoniker::BindToObject (objidl.h) - Win32 apps | Microsoft Learn