WS_CLOSE_LISTENER_CALLBACK callback function (webservices.h)

Handles the WsCloseListener call for a WS_CUSTOM_CHANNEL_BINDING.

Syntax

WS_CLOSE_LISTENER_CALLBACK WsCloseListenerCallback;

HRESULT WsCloseListenerCallback(
  [in]           void *listenerInstance,
  [in, optional] const WS_ASYNC_CONTEXT *asyncContext,
  [in, optional] WS_ERROR *error
)
{...}

Parameters

[in] listenerInstance

The pointer to the state specific to this listener instance, as created by the WS_CREATE_LISTENER_CALLBACK.

[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

Return code Description
WS_S_ASYNC
The asynchronous operation is still pending.
WS_E_OPERATION_ABORTED
The close was aborted by a call to WsAbortListener as it was closing.
WS_E_INVALID_OPERATION
The listener was in an inappropriate state.
WS_E_OPERATION_TIMED_OUT
The operation did not complete within the time allotted.
E_INVALIDARG
One or more arguments are invalid.
Other Errors
This function may return other errors not listed above.

Remarks

See WsCloseListener for information about the contract of this API.

Requirements

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