Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

CREDUI_FLAGS (Enums)
 
.

    /// <summary>
    /// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/dpapiusercredentials.asp
    /// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthn/security/creduipromptforcredentials.asp
    /// </summary>
    [Flags]
    public enum PromptForWindowsCredentialsFlags
    {
    /// <summary>
    /// The caller is requesting that the credential provider return the user name and password in plain text.
    /// This value cannot be combined with SECURE_PROMPT.
    /// </summary>
    CREDUIWIN_GENERIC = 0x1,
    /// <summary>
    /// The Save check box is displayed in the dialog box.
    /// </summary>
    CREDUIWIN_CHECKBOX = 0x2,

    REQUEST_ADMINISTRATOR = 0x4,
    EXCLUDE_CERTIFICATES = 0x8,

Summary

    /// <summary>
    /// Only credential providers that support the authentication package specified by the authPackage parameter should be enumerated.
    /// This value cannot be combined with CREDUIWIN_IN_CRED_ONLY.
    /// </summary>
    CREDUIWIN_AUTHPACKAGE_ONLY = 0x10,
    /// <summary>
    /// Only the credentials specified by the InAuthBuffer parameter for the authentication package specified by the authPackage parameter should be enumerated.
    /// If this flag is set, and the InAuthBuffer parameter is NULL, the function fails.
    /// This value cannot be combined with CREDUIWIN_AUTHPACKAGE_ONLY.
    /// </summary>
    CREDUIWIN_IN_CRED_ONLY = 0x20,

C# Definition:

[Flags]
enum CREDUI_FLAGS
{
   INCORRECT_PASSWORD = 0x1,
   DO_NOT_PERSIST = 0x2,
   REQUEST_ADMINISTRATOR = 0x4,
   EXCLUDE_CERTIFICATES = 0x8,
   REQUIRE_CERTIFICATE = 0x10,
   SHOW_SAVE_CHECK_BOX = 0x40,
   ALWAYS_SHOW_UI = 0x80,
   REQUIRE_SMARTCARD = 0x100,
   PASSWORD_ONLY_OK = 0x200,
   VALIDATE_USERNAME = 0x400,
   COMPLETE_USERNAME = 0x800,
   PERSIST = 0x1000,
   SERVER_CREDENTIAL = 0x4000,
   EXPECT_CONFIRMATION = 0x20000,
   GENERIC_CREDENTIALS = 0x40000,
   USERNAME_TARGET_CREDENTIALS = 0x80000,
   KEEP_USERNAME = 0x100000,
}

VB Definition:

<Flags> _
Enum CREDUI_FLAGS
   INCORRECT_PASSWORD = &H1
   DO_NOT_PERSIST = &H2
   REQUEST_ADMINISTRATOR = &H4
   EXCLUDE_CERTIFICATES = &H8
   REQUIRE_CERTIFICATE = &H10
   SHOW_SAVE_CHECK_BOX = &H40
   ALWAYS_SHOW_UI = &H80
   REQUIRE_SMARTCARD = &H100
   PASSWORD_ONLY_OK = &H200
   VALIDATE_USERNAME = &H400
   COMPLETE_USERNAME = &H800
   PERSIST = &H1000
   SERVER_CREDENTIAL = &H4000
   EXPECT_CONFIRMATION = &H20000
   GENERIC_CREDENTIALS = &H40000
   USERNAME_TARGET_CREDENTIALS = &H80000
   KEEP_USERNAME = &H100000
End Enum

Notes:

None.

    SHOW_SAVE_CHECK_BOX = 0x40,
    ALWAYS_SHOW_UI = 0x80,

    /// <summary>
    /// Credential providers should enumerate only administrators. This value is intended for User Account Control (UAC) purposes only. We recommend that external callers not set this flag.
    /// </summary>
    CREDUIWIN_ENUMERATE_ADMINS = 0x100,
    /// <summary>
    /// Only the incoming credentials for the authentication package specified by the authPackage parameter should be enumerated.
    /// </summary>
    CREDUIWIN_ENUMERATE_CURRENT_USER = 0x200,

    VALIDATE_USERNAME = 0x400,
    COMPLETE_USERNAME = 0x800,

    /// <summary>
    /// The credential dialog box should be displayed on the secure desktop. This value cannot be combined with CREDUIWIN_GENERIC.
    /// Windows Vista: This value is not supported until Windows Vista with SP1.
    /// </summary>
    CREDUIWIN_SECURE_PROMPT = 0x1000,

    SERVER_CREDENTIAL = 0x4000,
    EXPECT_CONFIRMATION = 0x20000,
    GENERIC_CREDENTIALS = 0x40000,
    USERNAME_TARGET_CREDENTIALS = 0x80000,

    /// <summary>
    /// The credential provider should align the credential BLOB pointed to by the refOutAuthBuffer parameter to a 32-bit boundary, even if the provider is running on a 64-bit system.
    /// </summary>
    CREDUIWIN_PACK_32_WOW = 0x10000000,
    }

Documentation
 

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it!

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions