DOMAIN_PASSWORD_INFORMATION structure (ntsecapi.h)
The DOMAIN_PASSWORD_INFORMATION structure contains information about a domain's password policy, such as the minimum length for passwords and how unique passwords must be.
It is used in the MSV1_0_CHANGEPASSWORD_RESPONSE structure.
Syntax
typedef struct _DOMAIN_PASSWORD_INFORMATION {
USHORT MinPasswordLength;
USHORT PasswordHistoryLength;
ULONG PasswordProperties;
#if ...
OLD_LARGE_INTEGER MaxPasswordAge;
#if ...
OLD_LARGE_INTEGER MinPasswordAge;
#else
LARGE_INTEGER MaxPasswordAge;
#endif
#else
LARGE_INTEGER MinPasswordAge;
#endif
} DOMAIN_PASSWORD_INFORMATION, *PDOMAIN_PASSWORD_INFORMATION;
Members
MinPasswordLength
Specifies the minimum length, in characters, of a valid password.
PasswordHistoryLength
Indicates the number of previous passwords saved in the history list. A user cannot reuse a password in the history list.
PasswordProperties
Flags that describe the password properties. They can be one or more of the following values.
MaxPasswordAge
Specifies the maximum length of time that a password can remain the same. Passwords older than this must be changed. Because SAM stores relative times as negative values and absolute times as positive numbers, the time is stored as a FILETIME structure with negative values.
The data type for this member is OLD_LARGE_INTEGER if MIDL_PASS is defined.
MinPasswordAge
Specifies the minimum length of time before a password can be changed. Because SAM stores relative times as negative values and absolute times as positive numbers, the time is stored as a FILETIME structure with negative values.
The data type for this member is OLD_LARGE_INTEGER if MIDL_PASS is defined.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Header | ntsecapi.h |