IWTSVirtualChannelCallback::OnDataReceived method (tsvirtualchannels.h)
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(
[in] ULONG cbSize,
[in] BYTE *pBuffer
);
Parameters
[in] cbSize
The size, in bytes, of the buffer to receive the data.
[in] 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
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | tsvirtualchannels.h |