IDebugControl2::GetReturnOffset method (dbgeng.h)

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

Syntax

HRESULT GetReturnOffset(
  [out] PULONG64 Offset
);

Parameters

[out] Offset

Receives the return address.

Return value

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

Return code Description
S_OK
The method was successful.

Remarks

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

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