I forgot to post the source code for this trivial utility, it is now attached to this post.
This utility is useful when dealing with multiple HRESULT values (for instance when disassembling a dll that returns HRESULTs.) For a single value, it's probably no better (but no worse either) than looking it up in MSDN.
NOTE:
the awk scripts used to format the HRESULT value and message text are included. They are automatically applied to the file mshresult.txt which is a lightly cleaned up version of the ms page (as of 2021.) MS may have added a few HRESULTs since that list was created.
The console version is meant to be used to create a text version of the list that can be manipulated (or searched) in a text editor. Other than that, it is not very useful.
Source for both, the console and GUI versions along with the awk scripts are included in the attachment.
Lastly, the lpi has the settings to create debug versions. For regular use it is more efficient to use a non-debug version, simply change the debug setting and rebuild to obtain a release version (which will be roughly 1/3 the size of the debug version.)