StackTrace_SimpleContext 結構StackTrace_SimpleContext Structure

提供可用來代替完整 CONTEXT 結構的簡單內容。Provides a simple context that can be used in place of a full CONTEXT structure.

語法Syntax

struct StackTrace_SimpleContext  
{  
    ULONG64 StackOffset;       // ESP on x86  
    ULONG64 FrameOffset;       // EBP on x86  
    ULONG64 InstructionOffset; // EIP on x86  
};  

成員Members

memberMember 描述Description
StackOffset X86 平臺上的堆疊指標或輸入堆疊指標 (ESP) 。The stack pointer, or the enter stack pointer (ESP) on x86 platforms.
FrameOffset X86 平臺上的框架位移或 EBP 暫存器。The frame offset, or the EBP register on x86 platforms.
InstructionOffset 指令指標,或輸入指令指標 (x86 平臺上的 EIP) 。The instruction pointer, or the enter instruction pointer (EIP) on x86 platforms.

備註Remarks

因為堆疊追蹤函式通常只需要傳回位址、幀位移和堆疊位址,所以您可以選擇性地使用 SimpleContext 結構,而不是大型 CONTEXT 結構。Because stack trace functions typically need to return only the address, frame offset, and stack address, you can optionally use the SimpleContext structure instead of a large CONTEXT structure.

規格需求Requirements

平台: 請參閱 系統需求Platforms: See System Requirements.

標頭: SOS_Stacktrace。hHeader: SOS_Stacktrace.h

.NET Framework 版本:自 2.0 起可用Available since 2.0.NET Framework Versions: 自 2.0 起可用Available since 2.0

另請參閱See also