IBindHost::MonikerBindToStorage (Windows CE 5.0)
This method binds a moniker to storage.
HRESULT MonikerBindToStorage(IMoniker* pMk,IBindCtx* pBC,IBindStatusCallback* pBSC,REFIIDriid,void** ppvObj);
Parameters
- pMk
[in] Address of the IMoniker interface. - pBC
[in] Address of the IBindCtx interface. - pBSC
[in] Address of the IBindStatusCallback interface. - riid
[in] Identifier of the storage interface requested. - ppvObj
[out] Address of the storage interface. If ppvObj is not NULL, the application must call the AddRef method on the interface and call Release when it is finished using the interface.
Return Values
This method returns one of the values shown in the following table.
Value | Description |
---|---|
S_OK | The bind operation completed synchronously and successfully. The result of the bind operation is available in ppvObj. |
MK_S_ASYNCHRONOUS | The bind operation will complete asynchronously. The behavior matches that of IMoniker::BindToStorage. |
E_OUTOFMEMORY | There is insufficient memory to create the moniker. |
E_UNEXPECTED | An unknown error occurred. |
Remarks
This method behaves exactly the same as IMoniker::BindToStorage, except that it provides the control container (implementer of IBindHost) enough authority over the bind operation so that the control container can take charge of setting bind options and priority, while delegating all results and callbacks for the bind operation back to the control.
A host or control implementing IBindHost should implement IHttpNegotiate. It should also implement IServiceProvider to provide a pointer to its IHttpNegotiate interface when IHttpNegotiate is requested through IServiceProvider::QueryService.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Urlmon.h, Urlmon.idl.
Link Library: Urlmon.lib.
Send Feedback on this topic to the authors