WTS_USER_DATA structure (wtsdefs.h)

Contains select client property values.

Syntax

typedef struct _WTS_USER_DATA {
  WCHAR                     WorkDirectory[WTS_DIRECTORY_LENGTH + 1];
  WCHAR                     InitialProgram[WTS_INITIALPROGRAM_LENGTH + 1];
  WTS_TIME_ZONE_INFORMATION UserTimeZone;
} WTS_USER_DATA, *PWTS_USER_DATA;

Members

WorkDirectory[WTS_DIRECTORY_LENGTH + 1]

A string value that specifies the directory where the client startup program resides. This value corresponds to the WorkDirectory member of the WTS_CLIENT_DATA structure.

InitialProgram[WTS_INITIALPROGRAM_LENGTH + 1]

A string value that specifies the name of the initial program. This value corresponds to the InitialProgram member of the WTS_CLIENT_DATA structure.

UserTimeZone

A WTS_TIME_ZONE_INFORMATION structure that contains client time zone information. This value corresponds to the ClientTimeZone member of the WTS_CLIENT_DATA structure.

Remarks

This structure is used by the GetUserData method and is both sent to and returned by the protocol. This structure is initialized with client data by the Remote Desktop Services service. If a value does not exist for a member, the protocol should not provide one.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 R2
Header wtsdefs.h (include Wtsprotocol.h)