CreateAsyncBindCtx (Windows CE 5.0)
This function creates an asynchronous bind context for use with asynchronous monikers.
HRESULTCreateAsyncBindCtx(DWORDdwReserved,IBindStatusCallback* pbsc,IEnumFORMATETC* penumfmtetc,IBindCtx** ppbc);
Parameters
- dwReserved
[in] Reserved. Must be zero. - pbsc
[in] Address of the IBindStatusCallback interface used for receiving data availability and progress notifications. - penumfmtetc
[in] Address of the IEnumFORMATETC interface that can be used to enumerate formats for format negotiation during binding. This parameter can be NULL, in which case the calling application is not interested in format negotiation during binding, and the default format of the object will be bound to it. - ppbc
[out] Address of a pointer to the IBindCtx interface of the new bind context.
Return Values
This function returns one of the values shown in the following table.
Value | Description |
---|---|
S_OK | Success. |
E_INVALIDARG | One or more parameters are invalid. |
E_OUTOFMEMORY | The function ran out of memory and did not complete. |
Remarks
This function automatically registers the IBindStatusCallback and the IEnumFORMATETC interfaces with the bind context. If the client does not require certain notifications, the callback methods may be implemented as empty function stubs (returning E_NOTIMPL).
The RegisterBindStatusCallback function can also be used to register callback interfaces in the bind context.
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