The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at _com_error::ErrorInfo.

Microsoft Specific**

Retrieves the IErrorInfo object passed to the constructor.

IErrorInfo * ErrorInfo( ) const throw( );  

Raw IErrorInfo item passed into the constructor.

Retrieves the encapsulated IErrorInfo item in a _com_error object, or NULL if no IErrorInfo item is recorded. The caller must call Release on the returned object when finished using it.

END Microsoft Specific

_com_error Class