Expand Minimize
This topic has not yet been rated - Rate this topic

WTSVirtualChannelWrite function

Writes data to the server end of a virtual channel.

Syntax


BOOL WTSVirtualChannelWrite(
  _In_   HANDLE hChannelHandle,
  _In_   PCHAR Buffer,
  _In_   ULONG Length,
  _Out_  PULONG pBytesWritten
);

Parameters

hChannelHandle [in]

Handle to a virtual channel opened by the WTSVirtualChannelOpen function.

Buffer [in]

Pointer to a buffer containing the data to write to the virtual channel.

Length [in]

Specifies the size, in bytes, of the data to write.

pBytesWritten [out]

Pointer to a variable that receives the number of bytes written.

Return value

If the function succeeds, the return value is a nonzero value.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

Note  WTSVirtualChannelWrite is not thread safe. To access a virtual channel from multiple threads, or to do asynchronous IO through a virtual channel, use WTSVirtualChannelQuery with WTSVirtualFileHandle.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Wtsapi32.h

Library

Wtsapi32.lib

DLL

Wtsapi32.Dll

See also

WTSVirtualChannelRead
WTSVirtualChannelQuery

 

 

Send comments about this topic to Microsoft

Build date: 10/26/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.