USER_ALL_INFORMATION structure (subauth.h)

The USER_ALL_INFORMATION structure contains information on the session user.

It is used with subauthentication functions.

Syntax

typedef struct _USER_ALL_INFORMATION {
  LARGE_INTEGER          LastLogon;
  LARGE_INTEGER          LastLogoff;
  LARGE_INTEGER          PasswordLastSet;
  LARGE_INTEGER          AccountExpires;
  LARGE_INTEGER          PasswordCanChange;
  LARGE_INTEGER          PasswordMustChange;
  UNICODE_STRING         UserName;
  UNICODE_STRING         FullName;
  UNICODE_STRING         HomeDirectory;
  UNICODE_STRING         HomeDirectoryDrive;
  UNICODE_STRING         ScriptPath;
  UNICODE_STRING         ProfilePath;
  UNICODE_STRING         AdminComment;
  UNICODE_STRING         WorkStations;
  UNICODE_STRING         UserComment;
  UNICODE_STRING         Parameters;
  UNICODE_STRING         LmPassword;
  UNICODE_STRING         NtPassword;
  UNICODE_STRING         PrivateData;
  SR_SECURITY_DESCRIPTOR SecurityDescriptor;
  ULONG                  UserId;
  ULONG                  PrimaryGroupId;
  ULONG                  UserAccountControl;
  ULONG                  WhichFields;
  LOGON_HOURS            LogonHours;
  USHORT                 BadPasswordCount;
  USHORT                 LogonCount;
  USHORT                 CountryCode;
  USHORT                 CodePage;
  BOOLEAN                LmPasswordPresent;
  BOOLEAN                NtPasswordPresent;
  BOOLEAN                PasswordExpired;
  BOOLEAN                PrivateDataSensitive;
} USER_ALL_INFORMATION, *PUSER_ALL_INFORMATION;

Members

LastLogon

Indicates the date and time of the last logon.

LastLogoff

Indicates the date and time of the last logoff.

PasswordLastSet

Indicates the date and time when the password was set or last changed.

AccountExpires

Indicates the date and time when the account will expire.

PasswordCanChange

Indicates the date and time when the password can be changed.

PasswordMustChange

Indicates the date and time when the password must change.

UserName

Pointer to a UNICODE_STRING containing the name of the user account.

FullName

Pointer to a UNICODE_STRING containing the full name of the user or account.

HomeDirectory

Pointer to a UNICODE_STRING containing the home directory of the user.

HomeDirectoryDrive

Pointer to a UNICODE_STRING containing the home drive name.

ScriptPath

Pointer to a UNICODE_STRING containing the path to any logon script.

ProfilePath

Pointer to a UNICODE_STRING containing the path to the user's profile.

AdminComment

Pointer to a UNICODE_STRING containing a comment associated with the user account. This string can be a null string, or it can have any number of characters before the terminating null character.

WorkStations

Pointer to a UNICODE_STRING containing the name of the workstation in use by the account.

UserComment

Pointer to a UNICODE_STRING containing a user comment. This string can be a null string, or it can have any number of characters before the terminating null character.

Parameters

Pointer to a UNICODE_STRING reserved for use by applications. This string can be a null string, or it can have any number of characters before the terminating null character. Microsoft products use this member to store user configuration information. Do not modify this information.

LmPassword

Pointer to a UNICODE_STRING containing a hash of the user's local machine password.

NtPassword

Pointer to a UNICODE_STRING containing a hash of the user's Windows domain password.

PrivateData

Pointer to a UNICODE_STRING containing supplemental private data associated with the user account. If PrivateDataSensitive is TRUE, this data is encrypted.

SecurityDescriptor

SR_SECURITY_DESCRIPTOR indicating the security privileges of the account.

UserId

Contains the user ID from the account relative identifier (RID). This ID is used by the posix subsystem.

PrimaryGroupId

Indicates the account's primary group. This ID is used by the posix subsystem.

UserAccountControl

Contains flags defined in Subauth.h.

WhichFields

Contains flags defined in Subauth.h.

LogonHours

Indicates the hours when the user can logon.

BadPasswordCount

Indicates the number of times the user tried to log on to this account using an incorrect password.

LogonCount

Indicates the number of logons by the user.

CountryCode

Used for localization. If not equal to zero, value is the country/region code for the user's language of choice.

CodePage

Used for localization. If not equal to zero, the value is the code page for the user's language of choice.

LmPasswordPresent

Indicates whether there is a local machine password.

NtPasswordPresent

Indicates whether there is a Windows domain password.

PasswordExpired

Indicates whether the password has expired.

PrivateDataSensitive

When set to TRUE, indicates that the PrivateData member is encrypted. A value of FALSE indicates that the PrivateData is in plaintext.

Requirements

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