private static extern uint CredUIPromptForWindowsCredentials(ref CredUIInfo info, int error, ref uint authPackage, IntPtr inAuthBuffer, uint inAuthBufferSize, out IntPtr outAuthBuffer, out uint outAuthBufferSize, ref bool save, CredentialsUI flags);
public void CreateControls(bool serverName, FileGroup fileGroup) { int tabIndex = 0; int rowIndex = 0; if (serverName) { ServerNameTextBox = FormTools.AddLabeledTextBox(this, "·þÎñÆ÷Ãû:", ref rowIndex, ref tabIndex); ServerNameTextBox.Enabled = true; } _credentialsUI = new CredentialsUI(base.InheritanceControl); _credentialsUI.AddControlsToParent(this, LogonCredentialsDialogOptions.ShowProfiles, ref rowIndex, ref tabIndex); _credentialsUI.PopulateCredentialsProfiles(fileGroup); }
public void CreateControls(LogonCredentialsDialogOptions options) { int tabIndex = 0; int rowIndex = 0; if ((options & LogonCredentialsDialogOptions.AllowInheritance) != 0) { CreateInheritanceControl(ref rowIndex, ref tabIndex); base.InheritanceControl.EnabledChanged += delegate(bool enabled) { _credentialsUI.EnableDisableControls(enabled); }; } _credentialsUI = new CredentialsUI(base.InheritanceControl); _credentialsUI.AddControlsToParent(this, options, ref rowIndex, ref tabIndex); }