<p>I'm at a loss for where to get the best information about the meaning, likely causes, and possible solutions to resolve COM errors when all you have is the HRESULT.</p>

<p>Searching Google for terms like '80004027' is just about useless as it sends you to random discussion groups where 90% of the time, the question 'What does 80004027 mean?' is not answered.</p>

<p>What is a good resource for this?  Why isn't MSDN the top Google result?</p>

[{'answer_id': 52061, 'author': 'prakash', 'author_id': 123, 'author_profile': 'https://Stackoverflow.com/users/123', 'pm_score': 0, 'selected': False, 'text': '<p><H2><a href="http://msdn.microsoft.com/en-us/library/ms690088.aspx" rel="nofollow noreferrer">Structure of COM Error Code</a></H2></p>\n\n<p>Second in Google results for COM Error Code.</p>\n'}, {'answer_id': 52091, 'author': 'Aardvark', 'author_id': 3655, 'author_profile': 'https://Stackoverflow.com/users/3655', 'pm_score': 0, 'selected': False, 'text': '<p>Good link from Prakash (I wasn\'t aware of the RCNr stuff - I thought those bytes were part of the facility - but that\'s only true in 16 bit Windows it seems.) </p>\n\n<p>Often these unknown codes are specific to the interface/component you\'re using. The facility would be set to FACILITY_ITF. I have an old program HRPlus (<a href="http://www.simtel.net/product.php%5Bid%5D8407%5Bcid%5D228%5BSiteID%5Dsimtel.net" rel="nofollow noreferrer">link?</a>) that parses HRESULTs.</p>\n'}, {'answer_id': 66957, 'author': 'Euro Micelli', 'author_id': 2230, 'author_profile': 'https://Stackoverflow.com/users/2230', 'pm_score': 3, 'selected': False, 'text': '<p>Error Lookup (ErrLook.exe) in your %PROGRAMFILES%[Some version of Visual Studio]\\Tools Common7\\ folder will give you the error message often, but not always:</p>\n\n<pre>\n    |---------------------------------------------------|\n    | [] Error Lookup                                   |\n    |---------------------------------------------------|\n    |   Value: [0x80004027]                             |\n    |                                                   |\n    |   Error Message                                   |\n    |   +---------------------------------------------+ |\n    |   |The component or application containing the  | |\n    |   |component has been disabled                  | |\n    |   |                                             | |\n    |   +---------------------------------------------+ |\n    |   [Modules...]    [Look up]    [Close]    [Help]  |\n    |----------------------------------------------------\n</pre>\n\n<p>If this doesn\'t work, you might follow some ideas from here:\n<a href="http://blogs.msdn.com/oldnewthing/archive/2008/09/01/8914664.aspx" rel="noreferrer">http://blogs.msdn.com/oldnewthing/archive/2008/09/01/8914664.aspx</a></p>\n\n<p>(Error Lookup simply calls FormatMessage() with the FORMAT_MESSAGE_FROM_SYSTEM\nflag)</p>\n\n<p>If the COM error is not a system error, you might also have to check the documentation of the component that threw the error.</p>\n\n<p>If you are catching the error in code, you can hope that the component implements rich errors (GetErrorInfo(), same as the Err object in VB) so you can get a full message describing the problem.</p>\n'}, {'answer_id': 67025, 'author': 'Mike Dimmick', 'author_id': 6970, 'author_profile': 'https://Stackoverflow.com/users/6970', 'pm_score': 4, 'selected': True, 'text': "<p>I always use WinError.h. That has the vast majority of Windows error codes of all sorts.</p>\n\n<p>A key indicator to look out for is the Facility part of the code: the second most-significant byte. That is, 0x80nnmmmm, where nn is the Facility. That tells you which component generated the code. Anything with a facility of 7 is a Windows error code repackaged as an HRESULT, and you should convert the low word to decimal and look it up in WinError.h. There are also error ranges that appear in their own headers (e.g. anything from 12000 - 12999 is a WinInet error code and you should look it up in WinInet.h).</p>\n\n<p>Looking up the error code will give you the symbolic name, which might be found in more documentation than the code itself or the wording of the error message.</p>\n\n<p>FACILITY_ITF (which has the value 4, so these HRESULTs start 0x8004) indicates that the error is defined by the interface you're using; you'll have to check with that interface to find out what it means.</p>\n\n<p>Finally, COM also offers the interface IErrorInfo to retrieve extended error information: call GetErrorInfo to retrieve the error object. You'll have to query for ISupportErrorInfo and call that interface's InterfaceSupportsErrorInfo method to determine whether the interface you called actually set the error object (and of course, if it was template code, it could be lying).</p>\n"}]
['https://Stackoverflow.com/questions/52059', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1341/']