WS_PUSH_BYTES_CALLBACK callback function (webservices.h)

Used by the WsPushBytes function to request that data be written.

Syntax

WS_PUSH_BYTES_CALLBACK WsPushBytesCallback;

HRESULT WsPushBytesCallback(
  void *callbackState,
  WS_WRITE_CALLBACK writeCallback,
  void *writeCallbackState,
  const WS_ASYNC_CONTEXT *asyncContext,
  WS_ERROR *error
)
{...}

Parameters

callbackState

A void pointer to the user-defined state that was passed to WsPushBytes.

writeCallback

The callback function for writing bytes to the document.

writeCallbackState

A void pointer to the caller-defined state that should be passed when invoking the WS_WRITE_CALLBACK function.

asyncContext

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

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

   
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