Freigeben über


A list of common HRESULT error codes

I was looking for error code –2146232797 (hex 0x80131623, which turned out to be what is thrown by Environment.FailFast) and I’ve stumbled upon this treasure:

https://blogs.msdn.com/b/eldar/archive/2007/04/03/a-lot-of-hresult-codes.aspx

Also, here’s a great blog about deciphering an HRESULT:

https://blogs.msdn.com/b/heaths/archive/2005/07/21/441391.aspx

And here's another good list from MSDN:

https://msdn.microsoft.com/en-us/library/cc704587.aspx

I sincerely wish you to never ever need this knowledge...

Comments

  • Anonymous
    December 17, 2012
    The comment has been removed

  • Anonymous
    February 05, 2014
    well this should help

  • Anonymous
    March 23, 2014
    Not long after the last post, but I found a bit of a more comprehensive list of them on MSDN, here: msdn.microsoft.com/.../cc704587.aspx There's easily over 200 of them, and probably somewhere in the range of 500-1000.  The nice part is they all have a brief description to go along with the code's name and hex value.