What is the best source of information about COM error codes?

I don’t understand where to get the best information about the meaning, probable causes and possible solutions for fixing COM errors, when all you have is HRESULT.

A Google search for terms like "80004027" is almost useless as it sends you to random discussion groups where 90% of the time, the question "What does 80004027 mean?" not responding.

What is a good resource for this? Why is MSDN not the best Google result?

+5
source share
4 answers

I always use WinError.h. It has the vast majority of Windows error codes of all kinds.

, , : . 0x80nnmmmm, nn - . , . , 7, Windows, HRESULT, WinError.h. , (, - 12000 12999 - WinInet, WinInet.h).

, , .

FACILITY_ITF ( 4, HRESULT 0x8004) , , ; , , .

, COM IErrorInfo : GetErrorInfo . ISupportErrorInfo InterfaceSupportsErrorInfo , , (, , , ).

+5

(ErrLook.exe) % PROGRAMFILES% [Some version of Visual Studio]\Tools Common7\ , :

    |---------------------------------------------------|
    | [] Error Lookup                                   |
    |---------------------------------------------------|
    |   Value: [0x80004027]                             |
    |                                                   |
    |   Error Message                                   |
    |   +---------------------------------------------+ |
    |   |The component or application containing the  | |
    |   |component has been disabled                  | |
    |   |                                             | |
    |   +---------------------------------------------+ |
    |   [Modules...]    [Look up]    [Close]    [Help]  |
    |----------------------------------------------------

, : http://blogs.msdn.com/oldnewthing/archive/2008/09/01/8914664.aspx

( FormatMessage() FORMAT_MESSAGE_FROM_SYSTEM )

COM- , , .

, , (GetErrorInfo(), , Err VB), , .

+5

COM-

Google COM- .

0

Prakash ( RCNr - , ), 16- Windows.)

Often these unknown codes are specific to the interface / component that you are using. The object will be set to FACILITY_ITF. I have an old HRPlus program ( link? ) That parses HRESULT.

0
source

All Articles