Debugging Tools for Windows

GetDisassembleEffectiveOffset

The GetDisassembleEffectiveOffset method returns the address of the last instruction disassembled using Disassemble.

HRESULT
  IDebugControl::GetDisassembleEffectiveOffset(
    OUT PULONG64  Offset
    );

Parameters

Offset
Receives the address in the target's memory of the effective offset from the last instruction disassembled.

Return Value

S_OK
The method was successful.

This method can also return error values. See Return Values for more details.

Interface Version

GetDisassembleEffectiveOffset is available in all versions of IDebugControl.

Comments

The effective offset is the memory location used by an instruction. For example, if the last instruction to be disassembled is move ax, [ebp+4], the effective address is the value of ebp+4. This corresponds to the $ea pseudo-register.

For more information about using assembly with the debugger engine API, see Assembling and Disassembling Instructions.

Requirements

Headers: Defined in Dbgeng.h. Include Dbgeng.h.Defined in Dbgeng.h. Include Dbgeng.h.

See Also

Disassemble

Build machine: CAPEBUILD