/// <summary>
 /// Initializes a new instance of the <see cref="CredentialsDialog"/> class.
 /// </summary>
 /// <param name="caption">The caption.</param>
 /// <param name="message">The message.</param>
 /// <param name="userName">Name of the user.</param>
 /// <param name="options">The options.</param>
 public CredentialsDialog(string caption = null, string message = null, string userName = null, CredentialsDialogOptions options = CredentialsDialogOptions.Default)
     : this()
 {
     this.Caption = caption;
     this.Message = message;
     this.UserName = userName;
     this.Options = options;
 }
Exemplo n.º 2
0
 public 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,
                                                                   CredentialsDialogOptions flags);
Exemplo n.º 3
0
 internal 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,
     CredentialsDialogOptions flags);
Exemplo n.º 4
0
 public CredentialsDialog(string caption, string message, string userName, CredentialsDialogOptions options)
     : this()
 {
     this.Caption = caption;
     this.Message = message;
     this.UserName = userName;
     this.Options = options;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CredentialsDialog"/> class.
 /// </summary>
 /// <param name="caption">The caption.</param>
 /// <param name="message">The message.</param>
 /// <param name="userName">Name of the user.</param>
 /// <param name="options">The options.</param>
 public CredentialsDialog(string caption = null, string message = null, string userName = null, CredentialsDialogOptions options = CredentialsDialogOptions.Default) : this()
 {
     this.Caption  = caption;
     this.Message  = message;
     this.UserName = userName;
     this.Options  = options;
 }
Exemplo n.º 6
0
 public static extern Win32Error CredUIPromptForCredentials(ref CREDUI_INFO pUiInfo, string pszTargetName, IntPtr Reserved, int dwAuthError, StringBuilder pszUserName, int ulUserNameMaxChars, StringBuilder pszPassword, int ulPasswordMaxChars, [MarshalAs(UnmanagedType.Bool)] ref bool pfSave, CredentialsDialogOptions dwFlags);
Exemplo n.º 7
0
 public static extern Win32Error CredUICmdLinePromptForCredentials([In, Optional] string pszTargetName, IntPtr pContext, Win32Error dwAuthError, StringBuilder UserName, uint ulUserBufferSize,
                                                                   StringBuilder pszPassword, uint ulPasswordBufferSize, [MarshalAs(UnmanagedType.Bool)] ref bool pfSave, CredentialsDialogOptions dwFlags);