WTSCLIENT structure

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

Syntax


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

Members

ClientName

The NetBIOS name of the client computer.

Domain

The domain name of the client computer.

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: