Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Handles the WsCloseChannel call for a WS_CUSTOM_CHANNEL_BINDING.
Syntax
WS_CLOSE_CHANNEL_CALLBACK WsCloseChannelCallback;
HRESULT WsCloseChannelCallback(
[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 |
---|---|
|
The asynchronous operation is still pending. |
|
The close was aborted by a call to WsAbortChannel as it was closing. |
|
The channel was in an inappropriate state. |
|
The operation was aborted. |
|
The operation is not allowed due to the current state of the object. |
|
The connection with the remote endpoint was terminated. |
|
The remote endpoint could not process the request. |
|
The input data was not in the expected format or did not have the expected value. |
|
The operation did not complete within the time allotted. |
|
A quota was exceeded. |
|
Ran out of memory. |
|
One or more arguments are invalid. |
|
This function may return other errors not listed above. |
Remarks
See WsCloseChannel 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 |