Since we have to deal with COM error codes (HRESULT values) when working with the Windows Runtime I would like to know where I could find information about the error codes. I of course tried Google but only found the codes for Desktop apps (http://msdn.microsoft.com/en-us/library/windows/desktop/dd542642%28v=vs.85%29.aspx). The may be identical, but the Windows Runtime certainly adds error codes to that list.
Share
The documentation to which you linked (“COM Error Codes”) should contain all of the standard HRESULT values. Note that there are also system error codes which can appear as HRESULTs.
The standard HRESULTs and error codes are also defined in the
<winerror.h>header, which is part of the Windows SDK (this header also defines theHRESULT_FROM_WIN32function, which can be used to convert a system error code into the equivalent HRESULT.Note that other components (e.g. third party components) may use other HRESULTs. Each component should document which HRESULT values it uses and what their meanings are.