GetErrorInfo

HRESULT GetErrorInfo(

DWORD  dwReserved,       
  IErrorInfo  **pperrinfo  
);
 

Obtains the error information pointer set by the previous call to SetErrorInfo in the current logical thread.

Parameters

dwReserved
Reserved for future use. Must be zero.
pperrinfo
Pointer to a pointer to an error object.

Return Value

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.

Comments

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.

QuickInfo

  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.