Syntax
typedef struct tagCPUFrame
{
RTHANDLE RunningThread; WORD _fill0;
DWORD regCR2;
RTHANDLE regGS; WORD _fill1;
RTHANDLE regFS; WORD _fill2;
RTHANDLE regES; WORD _fill3;
RTHANDLE regDS; WORD _fill4;
RTHANDLE regLDT; WORD _fill5;
DWORD regEDI;
DWORD regESI;
DWORD regEBP;
DWORD regESP;
DWORD regEBX;
DWORD regEDX;
DWORD regECX;
DWORD regEAX;
DWORD ErrorCode;
DWORD ReturnEIP;
RTHANDLE ReturnCS; WORD _fill6;
DWORD ReturnEFLAGS;
DWORD ReturnESP;
RTHANDLE ReturnSS; WORD _fill7;
} CPUFRAME;
Fields
RunningThread
- Handle for the thread whose CPU registers are provided.
_fill0
- Reserved.
regCR2
- The system’s CR2 register.
This field is only valid in the context of an exception handler.
regGS
- The application’s GS register (Ring 3).
_fill1
- Reserved.
regFS
- The application’s FS register (Ring 3).
_fill2
- Reserved.
regES
- The application’s ES register (Ring 3).
_fill3
- Reserved.
regDS
- The application’s DS register (Ring 3).
_fill4
- Reserved.
regLDT
- The system’s LDTR register.
_fill5
- Reserved.
regEDI
- The application’s EDI register (Ring 3).
regESI
- The application’s ESI register (Ring 3).
regEBP
- The application’s EBP register (Ring 3).
regESP
- Reserved.
regEBX
- The application’s EBX register (Ring 3).
regEDX
- The application’s EDX register (Ring 3).
regECX
- The application’s ECX register (Ring 3).
regEAX
- The application’s EAX register (Ring 3).
ErrorCode
- Error code returned by the processor.
This field is only valid in the context of an exception handler.
ReturnEIP
- The application’s EIP register (Ring 3).
ReturnCS
- The application’s CS register (Ring 3).
_fill6
- Reserved.
ReturnEFLAGS
- The application’s EFLAGS register.
ReturnESP
- The application’s ESP register (Ring 3).
ReturnSS
- The application’s SS register (Ring 3).
_fill7
- Reserved.
See Also