Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This structure represents a user name and password.

A pointer to a COAUTHIDENTITYstructure is a member of the COAUTHINFOstructure, which specifies authentication settings for remote activation requests.

Syntax

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

Members

User

String containing the user's name.

UserLength

Length of the User string, without the terminating NULL.

Domain

String containing the domain or workgroup name.

DomainLength

Length of the Domain string, without the terminating NULL.

Password

String containing the user's password in the domain or workgroup.

PasswordLength

Length of the Password string, without the terminating NULL.

Flags

Value indicating that the strings are ANSI (0x1) or Unicode(0x2).

This value can be SEC_WINNT_AUTH_IDENTITY_ANSI or SEC_WINNT_AUTH_IDENTITY_UNICODE.

Requirements

Header wtypes.h
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also