wincred.h header

This header is used by Security and Identity. For more information, see:

wincred.h contains the following programming interfaces:

Functions

 
CredDeleteA

Deletes a credential from the user's credential set.
CredDeleteW

Deletes a credential from the user's credential set.
CredEnumerateA

Enumerates the credentials from the user's credential set.
CredEnumerateW

Enumerates the credentials from the user's credential set.
CredFindBestCredentialA

Searches the Credentials Management (CredMan) database for the set of generic credentials that are associated with the current logon session and that best match the specified target resource.
CredFindBestCredentialW

Searches the Credentials Management (CredMan) database for the set of generic credentials that are associated with the current logon session and that best match the specified target resource.
CredFree

The CredFree function frees a buffer returned by any of the credentials management functions.
CredGetSessionTypes

The CredGetSessionTypes function returns the maximum persistence supported by the current logon session. A separate maximum persistence is returned for each credential type.
CredGetTargetInfoA

The CredGetTargetInfo function retrieves all known target name information for the named target computer.
CredGetTargetInfoW

The CredGetTargetInfo function retrieves all known target name information for the named target computer.
CredIsMarshaledCredentialA

Determines whether a specified user name string is a marshaled credential previously marshaled by CredMarshalCredential.
CredIsMarshaledCredentialW

Determines whether a specified user name string is a marshaled credential previously marshaled by CredMarshalCredential.
CredIsProtectedA

Specifies whether the specified credentials are encrypted by a previous call to the CredProtect function.
CredIsProtectedW

Specifies whether the specified credentials are encrypted by a previous call to the CredProtect function.
CredMarshalCredentialA

The CredMarshalCredential function transforms a credential into a text string.
CredMarshalCredentialW

The CredMarshalCredential function transforms a credential into a text string.
CredPackAuthenticationBufferA

Converts a string user name and password into an authentication buffer.
CredPackAuthenticationBufferW

Converts a string user name and password into an authentication buffer.
CredProtectA

Encrypts the specified credentials so that only the current security context can decrypt them.
CredProtectW

Encrypts the specified credentials so that only the current security context can decrypt them.
CredReadA

Reads a credential from the user's credential set.
CredReadDomainCredentialsA

Reads the domain credentials from the user's credential set.
CredReadDomainCredentialsW

Reads the domain credentials from the user's credential set.
CredReadW

Reads a credential from the user's credential set.
CredRenameA

CredRename is no longer supported.
CredRenameW

CredRename is no longer supported.
CredUICmdLinePromptForCredentialsA

Prompts for and accepts credential information from a user working in a command-line (console) application. The name and password typed by the user are passed back to the calling application for verification.
CredUICmdLinePromptForCredentialsW

Prompts for and accepts credential information from a user working in a command-line (console) application. The name and password typed by the user are passed back to the calling application for verification.
CredUIConfirmCredentialsA

Is called after CredUIPromptForCredentials or CredUICmdLinePromptForCredentials, to confirm the validity of the credential harvested.
CredUIConfirmCredentialsW

Is called after CredUIPromptForCredentials or CredUICmdLinePromptForCredentials, to confirm the validity of the credential harvested.
CredUIParseUserNameA

The CredUIParseUserName function extracts the domain and user account name from a fully qualified user name.
CredUIParseUserNameW

The CredUIParseUserName function extracts the domain and user account name from a fully qualified user name.
CredUIPromptForCredentialsA

Creates and displays a configurable dialog box that accepts credentials information from a user.
CredUIPromptForCredentialsW

Creates and displays a configurable dialog box that accepts credentials information from a user.
CredUIPromptForWindowsCredentialsA

Creates and displays a configurable dialog box that allows users to supply credential information by using any credential provider installed on the local computer.
CredUIPromptForWindowsCredentialsW

Creates and displays a configurable dialog box that allows users to supply credential information by using any credential provider installed on the local computer.
CredUIReadSSOCredW

The CredUIReadSSOCredW function retrieves the user name for a single logon credential.
CredUIStoreSSOCredW

The CredUIStoreSSOCredW function stores a single logon credential.
CredUnmarshalCredentialA

The CredUnmarshalCredential function transforms a marshaled credential back into its original form.
CredUnmarshalCredentialW

The CredUnmarshalCredential function transforms a marshaled credential back into its original form.
CredUnPackAuthenticationBufferA

Converts an authentication buffer returned by a call to the CredUIPromptForWindowsCredentials function into a string user name and password.
CredUnPackAuthenticationBufferW

Converts an authentication buffer returned by a call to the CredUIPromptForWindowsCredentials function into a string user name and password.
CredUnprotectA

Decrypts credentials that were previously encrypted by using the CredProtect function.
CredUnprotectW

Decrypts credentials that were previously encrypted by using the CredProtect function.
CredWriteA

Creates a new credential or modifies an existing credential in the user's credential set.
CredWriteDomainCredentialsA

Writes domain credentials to the user's credential set.
CredWriteDomainCredentialsW

Writes domain credentials to the user's credential set.
CredWriteW

Creates a new credential or modifies an existing credential in the user's credential set.

Structures

 
CERT_CREDENTIAL_INFO

The CERT_CREDENTIAL_INFO structure contains a reference to a certificate.
CREDENTIAL_ATTRIBUTEA

The CREDENTIAL_ATTRIBUTE structure contains an application-defined attribute of the credential. An attribute is a keyword-value pair. It is up to the application to define the meaning of the attribute.
CREDENTIAL_ATTRIBUTEW

The CREDENTIAL_ATTRIBUTE structure contains an application-defined attribute of the credential. An attribute is a keyword-value pair. It is up to the application to define the meaning of the attribute.
CREDENTIAL_TARGET_INFORMATIONA

The CREDENTIAL_TARGET_INFORMATION structure contains the target computer's name, domain, and tree.
CREDENTIAL_TARGET_INFORMATIONW

The CREDENTIAL_TARGET_INFORMATION structure contains the target computer's name, domain, and tree.
CREDENTIALA

The CREDENTIAL structure contains an individual credential.
CREDENTIALW

The CREDENTIAL structure contains an individual credential.
CREDUI_INFOA

The CREDUI_INFO structure is used to pass information to the CredUIPromptForCredentials function that creates a dialog box used to obtain credentials information.
CREDUI_INFOW

The CREDUI_INFO structure is used to pass information to the CredUIPromptForCredentials function that creates a dialog box used to obtain credentials information.
USERNAME_TARGET_CREDENTIAL_INFO

The USERNAME_TARGET_CREDENTIAL_INFO structure contains a reference to a credential.

Enumerations

 
CRED_MARSHAL_TYPE

Specifies the types of credential to be marshaled by CredMarshalCredential or unmarshaled by CredUnmarshalCredential.
CRED_PROTECTION_TYPE

Specifies the security context in which credentials are encrypted when using the CredProtect function.