WS_ASYNC_FUNCTION function

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

Syntax


void WS_ASYNC_FUNCTION(
  _In_     HRESULT                 hr,
  _In_     WS_CALLBACK_MODEL       callbackModel,
  _In_     void*                   callbackState,
           WS_ASYNC_OPERATION*     next,
  _In_opt_ const WS_ASYNC_CONTEXT* asyncContext,
  _In_opt_ WS_ERROR*               error
);

Parameters

hr [in]

The result of the previous async operation.

callbackModel [in]

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

callbackState [in]

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.

asyncContext [in, optional]

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

error [in, optional]

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

Return value

This function does not return a value.

Requirements

Version

v.1.0

Header

WebServices.h

 

 

Community Additions

ADD
Show: