_WTS_USER_CREDENTIAL structure (wtsdefs.h)

Contains credential information for a user. This structure is used by the GetUserCredentials method.

Syntax

typedef struct _WTS_USER_CREDENTIAL {
  WCHAR UserName[WTS_USERNAME_LENGTH + 1];
  WCHAR Password[WTS_PASSWORD_LENGTH + 1];
  WCHAR Domain[WTS_DOMAIN_LENGTH + 1];
} _WTS_USER_CREDENTIAL, WTS_USER_CREDENTIAL, *PWTS_USER_CREDENTIAL, _WRDS_USER_CREDENTIAL;

Members

UserName[WTS_USERNAME_LENGTH + 1]

A string that contains the name of the user.

Password[WTS_PASSWORD_LENGTH + 1]

A string that contains the user password.

Domain[WTS_DOMAIN_LENGTH + 1]

A string that contains the domain name for the user.

Remarks

The user name and password are plaintext.

Requirements

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