COAUTHIDENTITY structure (wtypesbase.h)

Contains a user name and password.

Syntax

typedef struct _COAUTHIDENTITY {
  USHORT *User;
  ULONG  UserLength;
  USHORT *Domain;
  ULONG  DomainLength;
  USHORT *Password;
  ULONG  PasswordLength;
  ULONG  Flags;
} COAUTHIDENTITY;

Members

User

The user's name.

UserLength

The length of the User string, without the terminating NULL.

Domain

The domain or workgroup name.

DomainLength

The length of the Domain string, without the terminating NULL.

Password

The user's password in the domain or workgroup.

PasswordLength

The length of the Password string, without the terminating NULL.

Flags

Indicates whether the strings are Unicode strings.

Value Meaning
SEC_WINNT_AUTH_IDENTITY_ANSI
0x1
The strings are ANSI strings.
SEC_WINNT_AUTH_IDENTITY_UNICODE
0x2
The strings are Unicode strings.

Remarks

COM does not persist the user's password information. For applications that use passwords, please see the documentation on Cryptography (CryptoAPI).

This structure is equivalent to the SEC_WINNT_AUTH_IDENTITY structure.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Header wtypesbase.h (include WTypes.h)

See also

COAUTHINFO