title: IOException HResult possible values
body: <p>I find out that sometimes in <strong>IO</strong> operations common <a href="http://msdn.microsoft.com/en-us/library/system.io.ioexception(v=vs.110).aspx" rel="nofollow noreferrer"><strong>IOException</strong></a> is thrown. I can use <a href="http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.marshal.gethrforexception.aspx" rel="nofollow noreferrer">Marshal.GetHRForException(Exception e)</a> method (found <a href="https://stackoverflow.com/questions/991537/how-do-i-determine-the-hresult-for-a-system-io-ioexception">here</a>) in order to determine the specific error code. After that, I want to re-throw an exception, using my application specific error code, in order to give the user some tips what has gone wrong. But I was unable to find the list of possible <strong>HResult</strong> values for <a href="http://msdn.microsoft.com/en-us/library/system.io.ioexception(v=vs.110).aspx" rel="nofollow noreferrer"><strong>IOException</strong></a>.</p>
  
  <p>One more thing I'm stuck with is that for different <strong>HResult</strong> codes root cause can be the same - for example, <strong>0x8007052E</strong> and <strong>0x80070569</strong> - both correspond to <code>Logon failure: unknown user name or bad password.</code></p>
  
  <p>I have tried to search something like "IOException HResult values" but there was nothing special for mapping IOException HResult with human-readable error (like <a href="http://users.atw.hu/csharpcookbook/csharpckbk-chp-5-sect-8.html" rel="nofollow noreferrer">this</a> or <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa378137%28v=vs.85%29.aspx" rel="nofollow noreferrer">this</a>).</p>
  
  <p>I have also seen the <a href="https://stackoverflow.com/questions/24876580/how-to-distinguish-programmatically-between-different-ioexceptions">question</a> here, which is very similar, but there still no solution.</p>
  
  <p>So, where is the documentation about IOException HResults values?</p>