SEC_WINNT_AUTH_IDENTITY

For Windows 3.x and MS-DOS:

typedef struct _SEC_WINNT_AUTH_IDENTITY{
  char __RPC_FAR * User;
  char __RPC_FAR * Domain;
  char __RPC_FAR * Password;
} SEC_WINNT_AUTH_IDENTITY;
 

For Windows NT, Windows 95, and Macintosh:

typedef struct _SEC_WINNT_AUTH_IDENTITY {
  unsigned short __RPC_FAR * User;
  unsigned long UserLength;
  unsigned short __RPC_FAR * Domain;
  unsigned long DomainLength;
  unsigned short __RPC_FAR * Password;
  unsigned long PasswordLength;
  unsigned long Flags;                      //value may be 0x1 or 0x2
} SEC_WINNT_AUTH_IDENTITY, * PSEC_WINNT_AUTH_IDENTITY;
 
User
String containing the user name.
Domain
String containing the domain name or the workgroup name.
Password
String containing the user's password in the domain or workgroup.
Flags
Long value specifying that the strings are ANSI (0x1) or Unicode (0x2).

Remarks

The SEC_WINNT_AUTH_IDENTITY structure allows you to pass a particular user name and password to the runtime library for the purpose of authentication. Note that this structure must remain valid for the lifetime of the binding handle.

For Windows 95, Windows 3.x and MS-DOS, the strings are ANSI; for Windows NT, the strings may be ANSI or Unicode, depending on the value you assign to the Flags field. For Windows NT, Windows 95, and Macintosh, the values for UserLength; DomainLength, and PasswordLength are the length of the corresponding string without the terminating 0X0000.