次の方法で共有


RegisterBindStatusCallback (Windows CE 5.0)

Send Feedback

This function registers a callback interface with an existing bind context.

HRESULTRegisterBindStatusCallback(IBindCtx* pbc,IBindStatusCallback* pbsc,IBindStatusCallback** ppbscPrevious,DWORDdwReserved);

Parameters

  • pbc
    [in] Address of the IBindCtx interface from which to receive callbacks.
  • pbsc
    [in] Address of the IBindStatusCallback interface implementation to be registered.
  • ppbscPrevious
    [out] Address of a pointer to a previously registered instance of IBindStatusCallback.
  • dwReserved
    [in] Reserved. Must be set to zero.

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 There was insufficient memory to register the callback with the bind context.

Remarks

The IBindStatusCallback interface passed into the pbsc parameter will receive callbacks on any binding operations using the bind context passed into the pbc parameter.

Only the last IBindStatusCallback interface that was registered to a particular bind context will receive callbacks. The implementation of IBindStatusCallback could pass the callbacks it receives to the previously registered IBindStatusCallback interface using the address of a pointer in the ppbscPrevious parameter.

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

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.