CRYPT_PASSWORD_CREDENTIALSA structure (wincrypt.h)

The CRYPT_PASSWORD_CREDENTIALS structure contains the user name and password credentials to be used in the CRYPT_CREDENTIALS structure as optional input to a remote object retrieval function such as CryptRetrieveObjectByUrl or CryptGetTimeValidObject.

Syntax

typedef struct _CRYPT_PASSWORD_CREDENTIALSA {
  DWORD cbSize;
  LPSTR pszUsername;
  LPSTR pszPassword;
} CRYPT_PASSWORD_CREDENTIALSA, *PCRYPT_PASSWORD_CREDENTIALSA;

Members

cbSize

The size, in bytes, of this structure.

pszUsername

A pointer to a null-terminated string that contains the user name credential for the remote session authentication.

pszPassword

A pointer to a null-terminated string that contains the password credential for the remote session authentication.

Remarks

Note

The wincrypt.h header defines CRYPT_PASSWORD_CREDENTIALS as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header wincrypt.h