Export (0) Print
Expand All
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.


Windows Mobile 6.5
A version of this page is also available for

This function retrieves the error information pointer set by the previous call to SetErrorInfo in the current logical thread.

HRESULT GetErrorInfo( 
  DWORD dwReserved, 
  IerrorInfo** pperrinfo 


[in] Reserved for future use; must set to zero.


[in] Pointer to a pointer to a system-implemented generic error object.

If successful, the function returns the HRESULT value S_OK. If there was no error object to return, the function returns S_FALSE.

This function retrieves 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 Embedded CEWindows CE 2.10 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

© 2014 Microsoft