Debugging Tools for Windows

GetReturnOffset

The GetReturnOffset method returns the return address for the current function.

HRESULT
  GetReturnOffset(
    OUT PULONG64  Offset
    );

Parameters

Offset
Receives the return address.

Return Value

S_OK
The method was successful.

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

Interface Version

GetReturnOffset is available in all versions of IDebugControl.

Comments

The return address is the location in the process's virtual address space of the instruction that will be executed when the current function returns.

Requirements

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

Build machine: CAPEBUILD