Share via


IDkmStackWalkFrameInterfaceProvider2.GetCorFrame Method

Definition

GetCorFrame is used to obtain a ICorDebugFrame which a component can use to deeply inspect the stack frame.

The returned interface may ONLY be used to inspect the target process, and should NEVER be used to control execution (no stepping, no breakpoints, no continue, etc). Doing so is unsupported and will result in undefined behavior.

public:
 System::Object ^ GetCorFrame(Microsoft::VisualStudio::Debugger::Clr::DkmClrRuntimeInstance ^ clrRuntimeInstance, Microsoft::VisualStudio::Debugger::DkmThread ^ thread, System::UInt64 frameBase, Guid interfaceID);
public object GetCorFrame (Microsoft.VisualStudio.Debugger.Clr.DkmClrRuntimeInstance clrRuntimeInstance, Microsoft.VisualStudio.Debugger.DkmThread thread, ulong frameBase, Guid interfaceID);
abstract member GetCorFrame : Microsoft.VisualStudio.Debugger.Clr.DkmClrRuntimeInstance * Microsoft.VisualStudio.Debugger.DkmThread * uint64 * Guid -> obj
Public Function GetCorFrame (clrRuntimeInstance As DkmClrRuntimeInstance, thread As DkmThread, frameBase As ULong, interfaceID As Guid) As Object

Parameters

clrRuntimeInstance
DkmClrRuntimeInstance

[In] Represents a CLR instance running in a target process.

thread
DkmThread

[In] The thread the stack frame came from.

frameBase
UInt64

[In] The frame base of the stack frame to get the inspection interface for.

interfaceID
Guid

[In] The GUID of the desired interface. IID_ICorDebugFrame can be used to obtain the CorDebug frame interface for a managed frame.

Returns

[Out] Returned frame interface. This may be cast to the interface pointer corresponding to 'InterfaceID'.

Applies to