WS_WRITE_CALLBACK callback function (webservices.h)

Used by the WS_XML_WRITER function to write a specified buffer to a user-determined destination.

Syntax

WS_WRITE_CALLBACK WsWriteCallback;

HRESULT WsWriteCallback(
  [in]           void *callbackState,
                 const WS_BYTES *buffers,
  [in]           ULONG count,
  [in, optional] const WS_ASYNC_CONTEXT *asyncContext,
  [in, optional] WS_ERROR *error
)
{...}

Parameters

[in] callbackState

A void pointer to the user-defined state value that was passed to the function that accepted this callback.

buffers

A pointer to the buffers containing the data to be written.

[in] count

The number of buffers to write.

[in, optional] asyncContext

A pointer to a WS_ASYNC_CONTEXT structure containing information on how to invoke the function asynchronously. Assigned NULL if invoking synchronously.

[in, optional] error

A pointer to a WS_ERROR data structure 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