DkmThread.GetCurrentFrameInfo(UInt64, UInt64, UInt64) Method

Definition

GetCurrentFrameInfo is used to obtain the frame base and return address for the current context of the thread. This takes into account Frame Pointer Omission and if the current instruction pointer is in a prolog, epilog etc... NOTE: In some cases this will get it wrong if the frame has Frame Pointer Omission and there are no symbols loaded.

Location constraint: API must be called from a Monitor component (component level < 100,000).

public:
 void GetCurrentFrameInfo([Runtime::InteropServices::Out] System::UInt64 % ReturnAddress, [Runtime::InteropServices::Out] System::UInt64 % FrameBase, [Runtime::InteropServices::Out] System::UInt64 % VFrame);
public void GetCurrentFrameInfo (out ulong ReturnAddress, out ulong FrameBase, out ulong VFrame);
member this.GetCurrentFrameInfo : uint64 * uint64 * uint64 -> unit
Public Sub GetCurrentFrameInfo (ByRef ReturnAddress As ULong, ByRef FrameBase As ULong, ByRef VFrame As ULong)

Parameters

ReturnAddress
UInt64

[Out] The return address of the frame.

FrameBase
UInt64

[Out] The frame base of the frame.

VFrame
UInt64

[Out] The vframe of the current frame. Only valid on x86.

Applies to