WS_PUSH_BYTES_CALLBACK callback function (webservices.h)

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



HRESULT WsPushBytesCallback(
  [in]           void *callbackState,
  [in]           WS_WRITE_CALLBACK writeCallback,
  [in]           void *writeCallbackState,
  [in, optional] const WS_ASYNC_CONTEXT *asyncContext,
  [in, optional] WS_ERROR *error


[in] callbackState

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

[in] writeCallback

The callback function for writing bytes to the document.

[in] writeCallbackState

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

[in, optional] asyncContext

A pointer to a WS_ASYNC_CONTEXT structure containing information on how to invoke the function asynchronously. Assign 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.


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