IDebugRegisters2::GetStackOffset2 method (dbgeng.h)
The GetStackOffset2 method returns the current thread's current stack location.
Syntax
HRESULT GetStackOffset2(
[in] ULONG Source,
[out] PULONG64 Offset
);
Parameters
[in] Source
Specifies the register source to query.
The possible values are listed in the following table.
Value | Register source |
---|---|
DEBUG_REGSRC_DEBUGGEE | Fetch register information from the target. |
DEBUG_REGSRC_EXPLICIT | Fetch register information from the current explicit register context. |
DEBUG_REGSRC_FRAME |
Fetch register information from the current scope's register context.
Note Stack unwinding does not guarantee accurate updating of the register context, so the scope frame's register context might not be accurate in all cases.
|
[out] Offset
Receives the location in the process's virtual address space of the current thread's current stack.
Return value
This list does not contain all the errors that might occur. For a list of possible errors, see HRESULT Values.
Return code | Description |
---|---|
|
The method was successful. |
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | dbgeng.h (include DbgEng.h) |