WS_SERVICE_SECURITY_CALLBACK callback function (webservices.h)

Invoked when headers of the incoming message are received and the body is not processed.

Syntax

WS_SERVICE_SECURITY_CALLBACK WsServiceSecurityCallback;

HRESULT WsServiceSecurityCallback(
  [in]           const WS_OPERATION_CONTEXT *context,
  [out]          BOOL *authorized,
  [in, optional] WS_ERROR *error
)
{...}

Parameters

[in] context

The incoming message with headers only.

[out] authorized

Set to TRUE, if authorization succeeded, FALSE if authorization failed.

[in, optional] error

Specifies where additional error information should be stored if the function fails.

Return value

This callback function does not return a value.

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