Binds to the persistent data of the object named by the specified moniker.
HRESULT MonikerBindToStorage(
IMoniker *pMk, // Moniker to be bound
IBindCtx *pBC, // Optional bind context
IBindStatusCallback *pBSC,
// The control's callback interface
REFIID riid, // IID of the desired storage interface
void **ppvObj // The result of the bind operation
);
IBindHost::MonikerBindToStorage should be the first mechanism that controls use when trying to bind to the data addressed by a moniker (if a control container doesn't support IBindHost, then the control should directly call IMoniker::BindToStorage). This function behaves exactly the same as IMoniker::BindToStorage, except that it enables the control container (the implementer of IBindHost) to set bind options and priority, while delegating all results and callbacks to the control.
A control can use pBC to pass additional bind options, such as a format enumerator (see IEnumFormatETC).
A control receives asynchronous callbacks pertaining to the bind operation by passing its container a pointer to the control's IBindStatusCallback interface. The control must provide this interface separately, not registered on the pBC parameter.
Windows NT: Use version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in urlmon.h.