I'm writing a simple Enum for interop that will define only a little percentage of the common HRESULT values that we can get by a Win32 function.
By the moment, I have defined these values that I taken from this MSDN reference and other sources:
E_ABORT = &H80004004
E_ACCESSDENIED = &H80070005
E_FAIL = &H80004005
E_HANDLE = &H80070006
E_INVALIDARG = &H80070057
E_NOINTERFACE = &H80004002
E_NOTIMPL = &H80004001
E_OUTOFMEMORY = &H8007000E
E_PENDING = &H8000000A
E_POINTER = &H80004003
E_UNEXPECTED = &H8000FFFF
S_FALSE = &H1
S_OK = &H0
To complete this Enum, I would like to define the HRESULT values with "COR_E" prefix that are wrapped by .NET Framework's Exception classes as explained in this MSDN article.
I've been searching for those values in this pinvoke.net reference and this MSDN reference and also Googling, but I can't find any list of those values I want.
What can I do to get a list of those HRESULT values?.