WS_PROXY_MESSAGE_CALLBACK callback function (webservices.h)

Invoked when the headers of the input message are about to be sent, or when output message headers are just received.

Syntax

WS_PROXY_MESSAGE_CALLBACK WsProxyMessageCallback;

HRESULT WsProxyMessageCallback(
  [in]           WS_MESSAGE *message,
  [in]           WS_HEAP *heap,
  [in]           void *state,
  [in, optional] WS_ERROR *error
)
{...}

Parameters

[in] message

The input or output message.

[in] heap

The heap associated with the call. This is the heap which is passed to call for which this callback is being called.

[in] state

The 'state' as specified as part of WS_PROXY_MESSAGE_CALLBACK_CONTEXT 'state' field.

[in, optional] error

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

Return value

If this callback function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

See also, WS_PROXY_MESSAGE_CALLBACK_CONTEXT.

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