MSV1_0_INTERACTIVE_LOGON structure (ntsecapi.h)

The MSV1_0_INTERACTIVE_LOGON structure contains information about an interactive logon.

It is used by the LsaLogonUser function.

Syntax

typedef struct _MSV1_0_INTERACTIVE_LOGON {
  MSV1_0_LOGON_SUBMIT_TYPE MessageType;
  UNICODE_STRING           LogonDomainName;
  UNICODE_STRING           UserName;
  UNICODE_STRING           Password;
} MSV1_0_INTERACTIVE_LOGON, *PMSV1_0_INTERACTIVE_LOGON;

Members

MessageType

MSV1_0_LOGON_SUBMIT_TYPE value that specifies the type of logon being requested. This member must be set to MsV1_0InteractiveLogon.

LogonDomainName

UNICODE_STRING that contains the name of the logon domain. The specified domain name must be a Windows domain or mixed domain that is trusted by this machine.

The Buffer member of the UNICODE_STRING is relative to the KERB_INTERACTIVE_LOGON structure and must point to memory that is contiguous to the MSV1_0_INTERACTIVE_LOGON structure.

UserName

UNICODE_STRING that represents the user's account name. The name can be up to 255 bytes long. The name is treated as case-insensitive. The specified UserName must have an account in domain LogonDomainName.

The Buffer member of the UNICODE_STRING is relative to the KERB_INTERACTIVE_LOGON structure and must point to memory that is contiguous to the MSV1_0_INTERACTIVE_LOGON structure.

Password

UNICODE_STRING that contains the user's plaintext password. The password may be up to 255 bytes long and contain any Unicode value. When you have finished using the password, clear it from memory by calling the SecureZeroMemory function. For more information on protecting the password, see Handling Passwords.

The Buffer member of the UNICODE_STRING is relative to the KERB_INTERACTIVE_LOGON structure and must point to memory that is contiguous to the MSV1_0_INTERACTIVE_LOGON structure.

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

MSV1_0_LOGON_SUBMIT_TYPE