Partager via


IWSDAsyncResult::SetCallback (Windows Embedded CE 6.0)

1/6/2010

This method specifies a callback interface to call when the asynchronous operation has completed.

Syntax

HRESULT SetCallback(
  IWSDAsyncCallback* pCallback,
  IUnknown* pAsyncState
);

Parameters

  • pCallback
    [in] Pointer to a IWSDAsyncCallback object that contains the callback implemented by the user.
  • pAsyncState
    [in] User-defined state information to pass to the callback.

Return Value

The following table shows the possible error code return values.

Error code Description

S_OK

This method completed successfully.

E_INVALIDARG

pCallback is NULL.

Remarks

The IWSDAsyncCallback::AsyncOperationComplete method is passed the result object associated with the completing message and the state.

pCallback is released when the IWSDAsyncResult object is destroyed.

Requirements

Header wsdapi.h
Library wsdapi.lib
Windows Embedded CE Windows Embedded CE 6.0 R2

See Also

Reference

IWSDAsyncResult
Web Services on Devices Interfaces