USERNAME_TARGET_CREDENTIAL_INFO structure (wincred.h)

The USERNAME_TARGET_CREDENTIAL_INFO structure contains a reference to a credential. This structure is used to pass a user name into the CredMarshalCredential function and out of the CredUnmarshalCredential. The resultant marshaled credential can be passed as the lpszUserName parameter of the LogonUser function to direct that API to get the password from the corresponding CRED_FLAGS_USERNAME_TARGET credential instead of from the lpszPassword parameter of the function.

Syntax

typedef struct _USERNAME_TARGET_CREDENTIAL_INFO {
  LPWSTR UserName;
} USERNAME_TARGET_CREDENTIAL_INFO, *PUSERNAME_TARGET_CREDENTIAL_INFO;

Members

UserName

User name of the USERNAME_TARGET_CREDENTIAL_INFO credential.

Requirements

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