IWTSVirtualChannelCallback::OnDataReceived method

Notifies the user about data that is being received.

The data has the same size and content as a corresponding WTSVirtualChannelWrite() call from the remote side. There is no hard limit on the size of the data that can be sent. All packet reconstruction is handled by the dynamic virtual channel (DVC) framework.

Syntax

HRESULT OnDataReceived(
  ULONG cbSize,
  BYTE  *pBuffer
);

Parameters

cbSize

The size, in bytes, of the buffer to receive the data.

pBuffer

A pointer to a buffer to receive the data. This buffer is valid only until this call is complete.

Return Value

Returns S_OK on success. Results in no action if the call fails.

Requirements

   
Windows version Windows Vista Windows Server 2008
Target Platform Windows
Header tsvirtualchannels.h

See Also

IWTSVirtualChannelCallback