One of the flags for Write().
The credential BLOB from an existing credential is preserved with the same credential name and credential type.
SessionWildcardName
"*Session"
The constant for a session wildcard.
UniversalWildcard
"*"
The constant for an universal wildcard.
Errors
Constant
Value
Description
ErrorAlreadyExists
&hFDA
Already exists.
ErrorBadUserName
2202
The UserName member of the passed in Credential structure is not valid. For a description of valid user name syntax, see the definition of that member.
ErrorInvalidFlags
&h3EC
A flag that is not valid was specified for the Flags parameter.
ErrorInvalidParameter
87
Certain fields cannot be changed in an existing credential. This error is returned if a field does not match the value in a protected field of the existing credential.
ErrorNone
0
Success
ErrorNoSuchLogonSession
&h520
The logon session does not exist or there is no credential set associated with this logon session. Network logon sessions do not have an associated credential set.
ErrorNotFound
&h490
No credential exists with the specified TargetName.
ErrorSCardNoReadersAvailable
&h8010002E
The certificate credential being written requires the smart card reader to be available.
ErrorSCardNoSmartCard
&h8010000C
A certificate credential being written requires the smart card to be inserted.
ErrorSCardRemovedCard
&h80100069
A certificate credential being written requires the smart card to be inserted.
ErrorSCardWrongCHV
&h8010006B
The wrong PIN was supplied for the certificate credential being written.