WS_ASYNC_CALLBACK callback function (webservices.h)

The callback function parameter used with the asynchronous model.

Syntax

WS_ASYNC_CALLBACK WsAsyncCallback;

void WsAsyncCallback(
  [in] HRESULT errorCode,
  [in] WS_CALLBACK_MODEL callbackModel,
  [in] void *callbackState
)
{...}

Parameters

[in] errorCode

The result of the operation. If the operation fails and a WS_ERROR object is supplied, the object is filled with rich error information before the callback is invoked.

[in] callbackModel

A WS_CALLBACK_MODEL value that determines whether the callback is being invoked as a long or short term callback.

[in] callbackState

A void pointer that corresponds to the value of the callbackState field of the WS_ASYNC_CONTEXT structure. This parameter is used to pass user-defined data to the callback function if the operation completes asynchronously.

Return value

None

Remarks

All error return codes of an operation are represented as HRESULTs. This API defines a set of HRESULTs in the FACILITY_WS range, but also returns errors defined elsewhere in the Windows API.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header webservices.h