Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than credui, prefix the name with the module name and a period.
CredUIPromptForCredentialsW (credui)
.
C# Signature:
[DllImport("credui", EntryPoint="CredUIPromptForCredentials")]
private static extern CredUIReturnCodes CredUIPromptForCredentials(ref CREDUI_INFO creditUR,
string targetName,
IntPtr reserved1,
int iError,
StringBuilder userName,
int maxUserName,
StringBuilder password,
int maxPassword,
[MarshalAs(UnmanagedType.Bool)] ref bool pfSave,
CREDUI_FLAGS flags);
VB .NET Signature:
Declare Function CredUIPromptForCredentialsW Lib "credui.dll" (TODO) As TODO
int saveCredentials;
StringBuilder user = new StringBuilder(MAX_USER_NAME);
StringBuilder pwd = new StringBuilder(MAX_PASSWORD);
creditUI.cbSize = Marshal.SizeOf(creditUI);
string host = "Database Client";
CREDUI_INFO info = new CREDUI_INFO();
info.pszCaptionText = host;
info.pszMessageText = "Please Enter Your Enterprise ID";
The CREDUI_INFO structure is used to pass information to the CredUIPromptForCredentials function that creates a dialog box used to obtain credentials information.
10/6/2022 7:59:57 AM - -171.251.236.129
TODO - a short description
3/8/2011 2:58:55 PM - -64.91.67.195
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).