Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CreateAsyncBindCtx function

Creates an asynchronous bind context for use with asynchronous monikers.

Syntax


HRESULT CreateAsyncBindCtx(
  _Reserved_  DWORD dwReserved,
  _In_        IBindStatusCallback *pbsc,
  _In_        IEnumFORMATETC *penumfmtetc,
  _Out_       IBindCtx **ppbc
);

Parameters

dwReserved [in]

Reserved. Must be set to 0.

pbsc [in]

A pointer to the IBindStatusCallback interface used to receive data availability and progress notifications.

penumfmtetc [in]

A pointer to the IEnumFORMATETC interface that can be used to enumerate formats for format negotiation during binding. If this parameter is NULL, the calling application does not receive format negotiation during binding, and the default format of the object is bound to it.

ppbc [out]

Pointer to the IBindCtx interface of the new bind context.

Return value

Returns one of the following values.

Return codeDescription
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 can 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

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Product

Internet Explorer 3.0

Header

Urlmon.h

Library

Urlmon.lib

DLL

Urlmon.dll

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.