Debugging Tools for Windows

GetStackOffset

The GetStackOffset method returns the current thread's current stack location.

HRESULT
  IDebugRegisters::GetStackOffset(
    OUT PULONG64  Offset
    );

Parameters

Offset
Receives the location in the process's virtual address space of the current thread's current stack location.

Return Value

S_OK
The method was successful.

This list does not contain all the errors that might occur. For a list of possible errors, see HRESULT Values.

Interface Version

GetStackOffset is available in all versions of IDebugRegisters.

Comments

The meaning of value returned by this method is architecture specific.

The method GetStackOffset2 performs the same task as this method but also allows the register source to be specified.

For an overview of the IDebugRegisters interface and other register-related methods, see Registers.

Requirements

Headers: Defined in DbgEng.h. Include DbgEng.h.

See Also

GetStackOffset2

Build machine: CAPEBUILD