IDebugControl::GetDisassembleEffectiveOffset method (dbgeng.h)

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

Syntax

HRESULT GetDisassembleEffectiveOffset(
  [out] PULONG64 Offset
);

Parameters

[out] Offset

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

Return value

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

Return code Description
S_OK
The method was successful.

Remarks

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

Requirement Value
Target Platform Desktop
Header dbgeng.h (include Dbgeng.h)

See also

Disassemble

IDebugControl

IDebugControl2

IDebugControl3