HRESULT GetErrorInfo(
DWORD dwReserved,
IErrorInfo **pperrinfo
);
Obtains the error information pointer set by the previous call to SetErrorInfo in the current logical thread.
The return value obtained from the returned HRESULT is one of the following:
Return value | Meaning |
---|---|
S_OK | Success. |
S_FALSE | There was no error object to return. |
This function returns a pointer to the most recently set IErrorInfo pointer in the current logical thread. It transfers ownership of the error object to the caller, and clears the error state for the thread.
Windows NT: Use version 3.1 and later.
Windows: Use Windows 95 and later.
Header: Declared in oleauto.h.
Import Library: Link with oleaut32.lib.