WS_ASYNC_FUNCTION callback function (webservices.h)

Used with the WsAsyncExecute to specify the next function to invoke in a series of async operations.

Syntax

WS_ASYNC_FUNCTION WsAsyncFunction;

HRESULT WsAsyncFunction(
  [in]           HRESULT hr,
  [in]           WS_CALLBACK_MODEL callbackModel,
  [in]           void *callbackState,
                 WS_ASYNC_OPERATION *next,
  [in, optional] const WS_ASYNC_CONTEXT *asyncContext,
  [in, optional] WS_ERROR *error
)
{...}

Parameters

[in] hr

The result of the previous async operation.

[in] callbackModel

Whether the callback is being invoked long or short. For more information, see WS_CALLBACK_MODEL.

[in] callbackState

This user supplied value that was passed to WsAsyncExecute/

next

Set the function field to the next function to call. It will be called regardless of whether or not the current function succeeds or fails.

Set the function field to NULL to indicate that there are no more functions to call.

WsAsyncExecute will set the function field to NULL before each function is called.

[in, optional] asyncContext

Information on how to invoke the function asynchronously, or NULL if invoking synchronously.

[in, optional] error

Specifies where additional error information should be stored if the function fails.

Return value

This callback function does not return a value.

Requirements

Requirement Value
Minimum supported client v.1.0
Target Platform Windows
Header webservices.h