EXCEPTION_RECORD Structure

The EXCEPTION_RECORD structure contains information about a hardware exception or a software exception that occurred during the execution of a process.

Structure Definition

typedef struct _EXCEPTION_RECORD {
    DWORD ExceptionCode;
    DWORD ExceptionFlags;
    struct _EXCEPTION_RECORD *ExceptionRecord;
    PVOID ExceptionAddress;
    DWORD NumberParameters;
    ULONG_PTR ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS];
} EXCEPTION_RECORD, *PEXCEPTION_RECORD;

Members

Remarks

When an exception occurs, the operating system creates an EXCEPTION_RECORD structure to describe the exception. This structure is passed to the exception dispatcher, which attempts to find a handler for the exception.

Note: The specific meaning of the parameters in the ExceptionInformation array depends on the value of the ExceptionCode member.

See Also