title: Retrieve credentials from Windows Credentials Store using C#
body: <p>I simply want to query the Credentials Store (or <em>Vault</em> as it is called in Windows&nbsp;8) and get the login data. MSDN is really unhelpful in this case, and I also do not want any C++ <a href="http://en.wikipedia.org/wiki/Platform_Invocation_Services" rel="noreferrer">P/Invoke</a> approaches.</p>
  
  <p>I know that similar questions have been asked here a few times, but none of those solutions work in my case. I do not use Metro App programming, so things like <code>PasswordVault</code> are (as it looks) not available. I just create a simple C# WPF desktop application.</p>
  
  <p>Ideally, it should work in several Windows versions, but Windows&nbsp;8 is preferred.</p>
  
  <p>More specifically, I want to query the stored data from the CRM plugin for Outlook to automatically have my application log in to the CRM Server without having the user to ask for his/her credentials. That means, if this is even possible...</p>
  
  <p>So how do I access the Windows Credentials Store?</p>