GetErrorInfo

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

At a Glance

Header file: Oleauto.h
Windows CE versions: 2.10 and later

Syntax

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

Parameters

dwReserved

Reserved for future use; set to zero.

pperrinfo

Pointer to a pointer to a system-implemented generic error object.

Return Values

One of the values obtained from the returned HRESULT and described in the following table is returned.

Value Description
S_OK Success.
S_FALSE 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.

See Also

SetErrorInfo