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.
Declare Function CredUIPromptForCredentialsW Lib "credui.dll" (byref creditUR AS CREDUI_INFO, _
byval targetName as string, _
byval reserved1 as IntPtr, _
byval iError as int32, _
byval UserName as StringBuilder, _
byval maxUserName AS int32, _
byval password AS StringBuilder, _
byval maxPassword as inte32, _
<MarshalAs(UnmanagedType.Bool)> byref pfSave AS Boolean, _
flags AS CREDUI_FLAGS) As CredUIReturnCodes
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).