http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/creduipromptforcredentials.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/dpapiusercredentials.asp
| C# |
[FlagsAttribute] public enum CredentialPromptBehaviors
| Member | Description |
|---|---|
| IncorrectPassword |
incorrect password
|
| DoNotPersist |
do not persist
|
| RequestAdministrator |
Request administrator password
|
| ExcludeCertificate |
Exclude certificate type credentials
|
| RequireCertificate |
Require a certificate credential
|
| ShowSaveCheckBox |
Show the save checkbox
|
| AlwaysShowUI |
Always show the prompt regardless of a previously saved password
|
| RequireSmartcard |
Require a smartcard credential
|
| PasswordOnlyOk |
No username required
|
| ValidateUserName |
Validate the username
|
| CompleteUserName |
Complete username required
|
| Persist |
Save the results of this prompt
|
| ServerCredential |
Get a server credential
|
| ExpectConfirmation |
Expect confirmation call to actually save credential
|
| GenericCredentials |
Retrieve generic credentials
|
| UserNameTargetCredentials |
Credentials target username
|
| KeepUserName |
Persist the username
|