WS_OPERATION_CANCEL_CALLBACK callback function (webservices.h)

Gives notification of the cancellation of an asynchronous service operation call as a result of an aborted shutdown of service host. This callback is invoked by service model.

Syntax

WS_OPERATION_CANCEL_CALLBACK WsOperationCancelCallback;

void WsOperationCancelCallback(
  [in] const WS_SERVICE_CANCEL_REASON reason,
  [in] void *state
)
{...}

Parameters

[in] reason

Specifies the reason for which the call back is called.

[in] state

A reference to the application defined state registered with the callback.

Return value

None

Remarks

See WsRegisterOperationForCancel for details.

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