DkmRuntimeInstance.GetInstructionAddress(DkmInstructionAddress, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the address of the kth instruction relative to a starting address. For constant length instruction sets, this is simple arithmetic. For variable length instruction sets, reverse-disassembly is required to obtain this address.
Location constraint: API must be called from an IDE component (component level > 100,000).
This API was introduced in Visual Studio 12 RTM (DkmApiVersion.VS12RTM).
public:
Microsoft::VisualStudio::Debugger::DkmInstructionAddress ^ GetInstructionAddress(Microsoft::VisualStudio::Debugger::DkmInstructionAddress ^ StartAddress, int InstructionOffset);
public:
Microsoft::VisualStudio::Debugger::DkmInstructionAddress ^ GetInstructionAddress(Microsoft::VisualStudio::Debugger::DkmInstructionAddress ^ StartAddress, int InstructionOffset);
Microsoft::VisualStudio::Debugger::DkmInstructionAddress GetInstructionAddress(Microsoft::VisualStudio::Debugger::DkmInstructionAddress const & StartAddress, int InstructionOffset);
public Microsoft.VisualStudio.Debugger.DkmInstructionAddress GetInstructionAddress (Microsoft.VisualStudio.Debugger.DkmInstructionAddress StartAddress, int InstructionOffset);
member this.GetInstructionAddress : Microsoft.VisualStudio.Debugger.DkmInstructionAddress * int -> Microsoft.VisualStudio.Debugger.DkmInstructionAddress
Public Function GetInstructionAddress (StartAddress As DkmInstructionAddress, InstructionOffset As Integer) As DkmInstructionAddress
Parameters
- StartAddress
- DkmInstructionAddress
[In] The address of the current instruction where the offset should begin.
- InstructionOffset
- Int32
[In] The number of instructions relative to StartAddress to find the desired address. This value can be negative.
Returns
[Out] The address of the instruction InstructionOffset instructions from StartAddress.