WTSCLIENT structure

Contains information about a Remote Desktop Connection (RDC) client.

Syntax


typedef struct _WTSCLIENT {
  WCHAR   ClientName[CLIENTNAME_LENGTH + 1];
  WCHAR   Domain[DOMAIN_LENGTH + 1 ];
  WCHAR   UserName[USERNAME_LENGTH + 1];
  WCHAR   WorkDirectory[MAX_PATH + 1];
  WCHAR   InitialProgram[MAX_PATH + 1];
  BYTE    EncryptionLevel;
  ULONG   ClientAddressFamily;
  USHORT  ClientAddress[CLIENTADDRESS_LENGTH + 1];
  USHORT  HRes;
  USHORT  VRes;
  USHORT  ColorDepth;
  WCHAR   ClientDirectory[MAX_PATH + 1];
  ULONG   ClientBuildNumber;
  ULONG   ClientHardwareId;
  USHORT  ClientProductId;
  USHORT  OutBufCountHost;
  USHORT  OutBufCountClient;
  USHORT  OutBufLength;
  WCHAR     DeviceId[MAX_PATH + 1];
} WTSCLIENT, *PWTSCLIENT;

Members

ClientName

The NetBIOS name of the client computer.

Domain

The client domain name.

UserName

The client user name.

WorkDirectory

The folder for the initial program.

InitialProgram

The program to start on connection.

EncryptionLevel

The security level of encryption.

ClientAddressFamily

The address family. This member can be AF_INET, AF_INET6, AF_IPX, AF_NETBIOS, or AF_UNSPEC.

ClientAddress

The client network address.

HRes

Horizontal dimension, in pixels, of the client's display.

VRes

Vertical dimension, in pixels, of the client's display.

ColorDepth

Color depth of the client's display. For possible values, see the ColorDepth member of the WTS_CLIENT_DISPLAY structure.

ClientDirectory

The location of the client ActiveX control DLL.

ClientBuildNumber

The client build number.

ClientHardwareId

Reserved.

ClientProductId

Reserved.

OutBufCountHost

The number of output buffers on the server per session.

OutBufCountClient

The number of output buffers on the client.

OutBufLength

The length of the output buffers, in bytes.

DeviceId

The device ID of the network adapter.

Remarks

For the ClientAddressFamily member, AF_INET (IPv4) will return in string format, for example "127.0.0.1". AF_INET6 (IPv6) will return in binary form.

Requirements

Minimum supported client

Windows Vista with SP1

Minimum supported server

Windows Server 2008

Header

Wtsapi32.h

Unicode and ANSI names

WTSCLIENTW (Unicode) and WTSCLIENTA (ANSI)

 

 

Show:
© 2014 Microsoft