Partager via


IWSDAsyncResult::SetCallback (Compact 2013)

3/26/2014

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

See Also

Reference

IWSDAsyncResult
Web Services on Devices Interfaces