title: Get users NT Credentials in Winform App
body: <p>I have a winform app that requires me to check whether a page exists on our Wiki or not. However, that query requires a users NetWork credentials to be passed.</p>
  
  <p>I don't want to hardcode my credentials, and I don't want users to have to manipulate the App.config everytime someone else uses it (there's also the issue of them having to expose their password in the App.Config). Is there a way I can get the current user's NT credentials? I don't need to see it (that would be an obvious security issue), I just need it for the following line of code:</p>
  
  <pre><code>HttpWebRequest WikiPageRequest;
  WikiPageRequest.Credentials = new NetworkCredential("user", "pass", "dom");
  //maybe do something like this
  WikiPageRequest.Credentials = GetNTCredentials();
  </code></pre>