CREDUI_INFO (Structures)
Last changed: -171.251.236.129

.

Check out the formatting tips on the right for help formatting and making links.

Use the template below then delete this header:

Summary
The CREDUI_INFO structure is used to pass information to the CredUIPromptForCredentials function that creates a dialog box used to obtain credentials information.

C# Signature:

  [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
  public struct CREDUI_INFO
  {
            public int cbSize;
            public IntPtr hwndParent;
            public string pszMessageText;
            public string pszCaptionText;
            public IntPtr hbmBanner;
  }

VB .NET Signature:

    <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _
    Public Structure CREDUI_INFO
    Public cbSize As Integer
    Public hwndParent As IntPtr
    Public pszMessageText As String
    Public pszCaptionText As String
    Public hbmBanner As IntPtr
    End Structure

User-Defined Types:

None.

Notes:

- Removed "[MarshalAs(UnmanagedType.LPWStr)]" attributes on pswMessageText and pszCaptionText.

  These are no longer needed as CredUIPromptForCredentials has been modified to remove the explicit Unicode version.

Documentation
CREDUI_INFO on MSDN