Compartilhar via


GetErrorInfo

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

HRESULT GetErrorInfo( 
  DWORD dwReserved, 
  IerrorInfo** pperrinfo 
);

Parameters

  • dwReserved
    Reserved for future use; must set to zero.
  • pperrinfo
    [in] Pointer to a pointer to a system-implemented generic error object.

Return Values

The function returns the HRESULT S_OK if it is successful and it returns S_FALSE if there was no error object to return.

Remarks

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.

Requirements

OS Versions: Windows CE 2.10 and later.
Header: Oleauto.h.
Link Library: Oleaut32.lib.

See Also

SetErrorInfo | IErrorInfo

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.