Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try looking at the <a href="http://weblogs.asp.net/pglavich/archive/2006/02/26/439077.aspx" rel="noreferrer">SecurePasswordTextBox</a> custom control. Are you trying to do something similar to a "Run As" type command where you are trying to run the process as a different user than the one currently logged on? If not, you should be able to just call Process.Start and let it pick up the current users credentials.</p> <p>Also, take a look at the following resources as well:</p> <ul> <li><a href="http://msdn.microsoft.com/en-us/library/aa375177.aspx" rel="noreferrer">CredUIPromptForCredentials</a></li> <li><a href="http://msdn.microsoft.com/en-us/library/aa375178(VS.85).aspx" rel="noreferrer">CredUIPromptForWindowsCredentials</a> (Vista and Server 2008)</li> <li><a href="http://support.microsoft.com/kb/180548" rel="noreferrer">Microsoft Support article</a></li> <li><a href="http://msdn.microsoft.com/en-us/library/aa378184.aspx" rel="noreferrer">LogonUser Function</a></li> <li><a href="http://msdn.microsoft.com/en-us/library/aa378189(VS.85).aspx" rel="noreferrer">LogonUserEx Function</a></li> <li><a href="http://msdn.microsoft.com/en-us/library/ms682429(VS.85).aspx" rel="noreferrer">CreateProcessAsUser</a></li> <li><a href="http://msdn.microsoft.com/en-us/library/ms682431(VS.85).aspx" rel="noreferrer">CreateProcessWithLogonW</a></li> <li><a href="http://msdn.microsoft.com/en-us/library/ms682434(VS.85).aspx" rel="noreferrer">CreateProcessWithTokenW</a></li> </ul> <p>The best option would probably be to use some interop p/inovke code to call CredUIPromptForCredentials to display the standard Windows dialog box and then use that information to either call Process.Start, or, more likely, call the CreateProcessAsUser function.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload