Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The GetNearInstruction method returns the ___location of a processor instruction relative to a given ___location.
Syntax
HRESULT GetNearInstruction(
[in] ULONG64 Offset,
[in] LONG Delta,
[out] PULONG64 NearOffset
);
Parameters
[in] Offset
Specifies the ___location in the process's virtual address space from which to start looking for the desired instruction.
[in] Delta
Specifies the number of instructions from Offset of the desired instruction. If Delta is negative, the returned offset is before Offset (see the Remarks section for more information).
[out] NearOffset
Receives the ___location in the process's virtual address space of the instruction that is Delta instructions away from Offset.
Return value
This method may also return error values. See Return Values for more details.
Return code | Description |
---|---|
|
The method was successful. |
Remarks
On some architectures, like x86 and x64, the size of an instruction may vary. On these architectures, when Delta is negative, the desired instruction ___location might not be uniquely defined. In this case, the debugger engine will search backward from Offset until it encounters a ___location such that there are the Delta number of instructions between that ___location and Offset.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | dbgeng.h (include Dbgeng.h) |