When a hardware exception occurs, the INtime kernel sends a message to the data mailbox called HW_FAULT_MBX in the format listed in this structure.
typedef struct tagHWExceptionMsg { RTHANDLE hThread; RTHANDLE hProcess; WORD wExceptionCode; DWORD pFaultingEIP; WORD wFaultingCS; } HWEXCEPTIONMSG, *LPHWEXCEPTIONMSG;
hThread
hProcess
wExceptionCode
pFaultingEIP
wFaultingCS
Possible values of the wExceptionCode field include the following:
EH_ZERO_DIVIDE (0x8100)
EH_SINGLE_STEP (0x8101)
EH_NMI (0x8102)
EH_DEBUG_TRAP (0x8103)
EH_OVERFLOW (0x8104)
EH_ARRAY_BOUNDS (0x8105)
EH_INVALID_OPCODE (0x8106)
EH_DEVICE_NOT_PRESENT (0x8107)
EH_DOUBLE_FAULT (0x8108)
EH_DEVICE_ERROR (0x8109)
EH_INVALID_TSS (0x810a)
EH_SEGMENT_NOT_PRESENT (0x810b)
EH_STACK_FAULT (0x810c)
EH_GENERAL_PROTECTION (0x810d)
EH_PAGE_FAULT (0x810e)
EH_ALIGNMENT_CHECK (0x8111)
EH_SIMD_EXCEPTION (0x8113)