Table of Contents

Method OpenVirtualProcess

Namespace
Microsoft.Samples.Debugging.CorDebug
Assembly
corapi.dll

OpenVirtualProcess(ulong, ICorDebugDataTarget, ICLRDebuggingLibraryProvider, Version, out Version, out ClrDebuggingProcessFlags)

Detects if a native module represents a CLR and if so provides the debugging interface and versioning information

public CorProcess OpenVirtualProcess(ulong moduleBaseAddress, ICorDebugDataTarget dataTarget, ICLRDebuggingLibraryProvider libraryProvider, Version maxDebuggerSupportedVersion, out Version version, out ClrDebuggingProcessFlags flags)

Parameters

moduleBaseAddress ulong

The native base address of a module which might be a CLR

dataTarget ICorDebugDataTarget

The process abstraction which can be used for inspection

libraryProvider ICLRDebuggingLibraryProvider

A callback interface for locating version specific debug libraries such as mscordbi.dll and mscordacwks.dll

maxDebuggerSupportedVersion Version

The highest version of the CLR/debugging libraries which the caller can support

version Version

The version of the CLR detected or null if no CLR was detected

flags ClrDebuggingProcessFlags

Flags which have additional information about the CLR. See ClrDebuggingProcessFlags for more details

Returns

CorProcess

The CLR's debugging interface