TRUSTED_PASSWORD_INFO structure (ntsecapi.h)

The TRUSTED_PASSWORD_INFO structure is used to query or set the password for a trusted domain. The LsaQueryTrustedDomainInfo and LsaSetTrustedDomainInformation functions use this structure when their InformationClass parameters are set to TrustedPasswordInformation.

Syntax

typedef struct _TRUSTED_PASSWORD_INFO {
  LSA_UNICODE_STRING Password;
  LSA_UNICODE_STRING OldPassword;
} TRUSTED_PASSWORD_INFO, *PTRUSTED_PASSWORD_INFO;

Members

Password

An LSA_UNICODE_STRING structure that contains the password to use when creating an authenticated connection to the domain.

OldPassword

An LSA_UNICODE_STRING structure that contains the old password. On set operations, if the Buffer member of this structure is NULL, the old password is set to the current password.

Remarks

When you have finished using the TRUSTED_PASSWORD_INFO structure, clear the sensitive information from memory by calling the SecureZeroMemory function. For more information about protecting passwords, see Handling Passwords.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header ntsecapi.h

See also

LSA_UNICODE_STRING

LsaQueryTrustedDomainInfo

LsaSetTrustedDomainInformation

TRUSTED_INFORMATION_CLASS