WS_ACCEPT_CHANNEL_CALLBACK callback function (webservices.h)
Handles the WsAcceptChannel call for a WS_CUSTOM_CHANNEL_BINDING.
Syntax
WS_ACCEPT_CHANNEL_CALLBACK WsAcceptChannelCallback;
HRESULT WsAcceptChannelCallback(
[in] void *listenerInstance,
[in] void *channelInstance,
[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] channelInstance
The pointer to the state specific to the channel instance, as created by the WS_CREATE_CHANNEL_CALLBACK when WsCreateChannelForListener was called.
[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 listener and/or channel was aborted. |
|
The listener has faulted. Once a listener has faulted, then accepts will immediately return this error. |
|
The listener was in an inappropriate state. |
|
The connection with the remote endpoint was terminated. |
|
The operation did not complete within the time allotted. |
|
A quota was exceeded. |
|
The input data was not in the expected format or did not have the expected value. |
|
Ran out of memory. |
|
One or more arguments are invalid. |
|
Security verification was not successful for the received data. |
|
A security operation failed in the Windows Web Services framework. |
|
This function may return other errors not listed above. |
Remarks
See WsAcceptChannel 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 |