IWRdsGraphicsChannelEvents::OnDataSent method (wrdsgraphicschannels.h)

Called when the IWRdsGraphicsChannel::Write method is called and the data has been sent. After this method has been called, the pBuffer parameter passed to the IWRdsGraphicsChannel::Write method is no longer needed and can be freed or reused.

Syntax

HRESULT OnDataSent(
  [in] IUnknown *pWriteContext,
  [in] BOOL     bCancelled,
  [in] BYTE     *pBuffer,
  [in] ULONG    cbBuffer
);

Parameters

[in] pWriteContext

A user-defined interface pointer that is passed as the pContext parameter in the IWRdsGraphicsChannel::Write method.

[in] bCancelled

Contains TRUE if the connection was dropped during the write, or FALSE otherwise.

[in] pBuffer

A pointer to a buffer that contains the data that was sent. The cbBuffer parameter contains the length of this buffer.

[in] cbBuffer

The length, in bytes, of the data in pBuffer.

Return value

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

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Target Platform Windows
Header wrdsgraphicschannels.h

See also

IWRdsGraphicsChannel::Write

IWRdsGraphicsChannelEvents