GetExceptionInformation

  LPEXCEPTION_POINTERS GetExceptionInformation(VOID)    

The GetExceptionInformation function retrieves details about an exception, including the machine state at the time of the exception.

Parameters

This function has no parameters.

Return Value

The return value is a pointer to an EXCEPTION_POINTERS structure containing information about the most-recent exception.

The EXCEPTION_POINTERS structure has the following form:

typedef struct _EXCEPTION_POINTERS { /* exp */

PEXCEPTION_RECORD ExceptionRecord;

PCONTEXT ContextRecord;

} EXCEPTION_POINTERS, *PEXCEPTION_POINTERS;

Comments

This function can only be used by an exception filter. The function is not available to an exception handler. The exception filter can copy some or all of this information to safe storage which the handler can later access.

See Also

GetExceptionCode, EXCEPTION_POINTERS