WS_SHUTDOWN_SESSION_CHANNEL_CALLBACK callback function (webservices.h)

Handles the WsShutdownSessionChannel call for a WS_CUSTOM_CHANNEL_BINDING.

Syntax

WS_SHUTDOWN_SESSION_CHANNEL_CALLBACK WsShutdownSessionChannelCallback;

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

Parameters

[in] channelInstance

The pointer to the state specific to this channel instance, as created by the WS_CREATE_CHANNEL_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_E_INVALID_OPERATION
This is returned if the channel is not in the WS_CHANNEL_STATE_OPEN state.

Remarks

See WsShutdownSessionChannel for information about the contract of this API.

Requirements

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