Export (0) Print
Expand All

IWTSVirtualChannel::Write method

Starts a write request on the channel. All writes are considered asynchronous. Calling this method copies the contents of pBuffer and returns immediately, so the buffer can be reclaimed. Because of the memory copy, too many Write() calls may result in allocating too much memory by the client.

A Close() call on this channel will cancel any pending writes.

Syntax


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

Parameters

cbSize [in]

The size, in bytes, of the buffer to which to write.

pBuffer [in]

A pointer to a buffer on the channel to which to write the data. You can reuse this buffer as soon as the call returns.

pReserved [in, optional]

Reserved for future use. The value must be NULL.

Return value

Returns S_OK if successful.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Version

Remote Desktop Connection (RDC) 6.1 for Windows XP (KB952155).

Header

Tsvirtualchannels.h

IDL

Tsvirtualchannels.idl

See also

IWTSVirtualChannel

 

 

Show:
© 2014 Microsoft