IWRdsGraphicsChannel::Write method (wrdsgraphicschannels.h)

Called to send data to the virtual channel.

Syntax

HRESULT Write(
  [in] ULONG    cbSize,
  [in] BYTE     *pBuffer,
  [in] IUnknown *pContext
);

Parameters

[in] cbSize

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

[in] pBuffer

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

The implementation will take ownership of this buffer until the IWRdsGraphicsChannelEvents::OnDataSent method is called. Before that time, this buffer must not be modified or freed.

[in] pContext

A user-defined interface pointer that is passed as the pWriteContext parameter in the IWRdsGraphicsChannelEvents::OnDataSent method.

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

IWRdsGraphicsChannelEvents::OnDataSent