How to know what an HRESULT code means? Use WinDBG. The debugger include a command called error that can be used to get a textual representation of an HRESULT. Simply pass the HRESULT to the error command and it displays the information. Example Usage