1633 lines
106 KiB
C#
1633 lines
106 KiB
C#
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
|
|
|
#pragma warning disable 108, 1591
|
|
|
|
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Debugger.Interop.CorDebug
|
|
{
|
|
[StructLayout(LayoutKind.Sequential, Pack=4)]
|
|
public struct _COR_IL_MAP
|
|
{
|
|
public uint oldOffset;
|
|
public uint newOffset;
|
|
public int fAccurate;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential, Pack=4)]
|
|
public struct _COR_VERSION
|
|
{
|
|
public uint dwMajor;
|
|
public uint dwMinor;
|
|
public uint dwBuild;
|
|
public uint dwSubBuild;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential, Pack=4)]
|
|
public struct _SECURITY_ATTRIBUTES
|
|
{
|
|
public uint nLength;
|
|
public IntPtr lpSecurityDescriptor;
|
|
public int bInheritHandle;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential, Pack=4)]
|
|
public struct COR_DEBUG_STEP_RANGE
|
|
{
|
|
public uint startOffset;
|
|
public uint endOffset;
|
|
}
|
|
|
|
[ComImport, CoClass(typeof(CorDebugClass)), Guid("3D6F5F61-7538-11D3-8D5B-00104B35E7EF")]
|
|
public interface CorDebug : ICorDebug
|
|
{
|
|
}
|
|
|
|
public enum CorDebugChainReason
|
|
{
|
|
CHAIN_CLASS_INIT = 1,
|
|
CHAIN_CONTEXT_POLICY = 8,
|
|
CHAIN_CONTEXT_SWITCH = 0x400,
|
|
CHAIN_DEBUGGER_EVAL = 0x200,
|
|
CHAIN_ENTER_MANAGED = 0x80,
|
|
CHAIN_ENTER_UNMANAGED = 0x100,
|
|
CHAIN_EXCEPTION_FILTER = 2,
|
|
CHAIN_FUNC_EVAL = 0x800,
|
|
CHAIN_INTERCEPTION = 0x10,
|
|
CHAIN_NONE = 0,
|
|
CHAIN_PROCESS_START = 0x20,
|
|
CHAIN_SECURITY = 4,
|
|
CHAIN_THREAD_START = 0x40
|
|
}
|
|
|
|
[Flags]
|
|
public enum CorDebugJITCompilerFlags
|
|
{
|
|
CORDEBUG_JIT_DEFAULT = 0x1,
|
|
CORDEBUG_JIT_DISABLE_OPTIMIZATION = 0x3,
|
|
CORDEBUG_JIT_ENABLE_ENC = 0x7
|
|
}
|
|
|
|
[ComImport, TypeLibType((short) 2), Guid("6FEF44D0-39E7-4C77-BE8E-C9F8CF988630"), ClassInterface((short) 0)]
|
|
public class CorDebugClass : ICorDebug, CorDebug
|
|
{
|
|
// Methods
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
public virtual extern void __CanLaunchOrAttach([In] uint dwProcessId, [In] int win32DebuggingEnabled);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
public virtual extern void __CreateProcess([In, MarshalAs(UnmanagedType.LPWStr)] string lpApplicationName, [In, MarshalAs(UnmanagedType.LPWStr)] string lpCommandLine, [In] ref _SECURITY_ATTRIBUTES lpProcessAttributes, [In] ref _SECURITY_ATTRIBUTES lpThreadAttributes, [In] int bInheritHandles, [In] uint dwCreationFlags, [In] IntPtr lpEnvironment, [In, MarshalAs(UnmanagedType.LPWStr)] string lpCurrentDirectory, [In, ComAliasName("Debugger.Interop.CorDebug.ULONG_PTR")] uint lpStartupInfo, [In, ComAliasName("Debugger.Interop.CorDebug.ULONG_PTR")] uint lpProcessInformation, [In] CorDebugCreateProcessFlags debuggingFlags, [MarshalAs(UnmanagedType.Interface)] out ICorDebugProcess ppProcess);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
public virtual extern void __DebugActiveProcess([In] uint id, [In] int win32Attach, [MarshalAs(UnmanagedType.Interface)] out ICorDebugProcess ppProcess);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
public virtual extern void __EnumerateProcesses([MarshalAs(UnmanagedType.Interface)] out ICorDebugProcessEnum ppProcess);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
public virtual extern void __GetProcess([In] uint dwProcessId, [MarshalAs(UnmanagedType.Interface)] out ICorDebugProcess ppProcess);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
public virtual extern void __Initialize();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
public virtual extern void __SetManagedHandler([In, MarshalAs(UnmanagedType.Interface)] ICorDebugManagedCallback pCallback);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
public virtual extern void __SetUnmanagedHandler([In, MarshalAs(UnmanagedType.Interface)] ICorDebugUnmanagedCallback pCallback);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
public virtual extern void __Terminate();
|
|
}
|
|
|
|
public enum CorDebugCreateProcessFlags
|
|
{
|
|
DEBUG_NO_SPECIAL_OPTIONS
|
|
}
|
|
|
|
public enum CorDebugExceptionCallbackType
|
|
{
|
|
DEBUG_EXCEPTION_CATCH_HANDLER_FOUND = 3,
|
|
DEBUG_EXCEPTION_FIRST_CHANCE = 1,
|
|
DEBUG_EXCEPTION_UNHANDLED = 4,
|
|
DEBUG_EXCEPTION_USER_FIRST_CHANCE = 2
|
|
}
|
|
|
|
public enum CorDebugExceptionUnwindCallbackType
|
|
{
|
|
DEBUG_EXCEPTION_INTERCEPTED = 2,
|
|
DEBUG_EXCEPTION_UNWIND_BEGIN = 1
|
|
}
|
|
|
|
public enum CorDebugHandleType
|
|
{
|
|
HANDLE_STRONG = 1,
|
|
HANDLE_WEAK_TRACK_RESURRECTION = 2
|
|
}
|
|
|
|
public enum CorDebugIntercept
|
|
{
|
|
INTERCEPT_ALL = 0xffff,
|
|
INTERCEPT_CLASS_INIT = 1,
|
|
INTERCEPT_CONTEXT_POLICY = 8,
|
|
INTERCEPT_EXCEPTION_FILTER = 2,
|
|
INTERCEPT_INTERCEPTION = 0x10,
|
|
INTERCEPT_NONE = 0,
|
|
INTERCEPT_SECURITY = 4
|
|
}
|
|
|
|
public enum CorDebugInternalFrameType
|
|
{
|
|
STUBFRAME_NONE,
|
|
STUBFRAME_M2U,
|
|
STUBFRAME_U2M,
|
|
STUBFRAME_APPDOMAIN_TRANSITION,
|
|
STUBFRAME_LIGHTWEIGHT_FUNCTION,
|
|
STUBFRAME_FUNC_EVAL,
|
|
STUBFRAME_INTERNALCALL
|
|
}
|
|
|
|
public enum CorDebugMappingResult
|
|
{
|
|
MAPPING_APPROXIMATE = 0x20,
|
|
MAPPING_EPILOG = 2,
|
|
MAPPING_EXACT = 0x10,
|
|
MAPPING_NO_INFO = 4,
|
|
MAPPING_PROLOG = 1,
|
|
MAPPING_UNMAPPED_ADDRESS = 8
|
|
}
|
|
|
|
public enum CorDebugMDAFlags
|
|
{
|
|
MDA_FLAG_SLIP = 2
|
|
}
|
|
|
|
public enum CorDebugRegister
|
|
{
|
|
REGISTER_AMD64_R10 = 11,
|
|
REGISTER_AMD64_R11 = 12,
|
|
REGISTER_AMD64_R12 = 13,
|
|
REGISTER_AMD64_R13 = 14,
|
|
REGISTER_AMD64_R14 = 15,
|
|
REGISTER_AMD64_R15 = 0x10,
|
|
REGISTER_AMD64_R8 = 9,
|
|
REGISTER_AMD64_R9 = 10,
|
|
REGISTER_AMD64_RAX = 3,
|
|
REGISTER_AMD64_RBP = 2,
|
|
REGISTER_AMD64_RBX = 6,
|
|
REGISTER_AMD64_RCX = 4,
|
|
REGISTER_AMD64_RDI = 8,
|
|
REGISTER_AMD64_RDX = 5,
|
|
REGISTER_AMD64_RIP = 0,
|
|
REGISTER_AMD64_RSI = 7,
|
|
REGISTER_AMD64_RSP = 1,
|
|
REGISTER_AMD64_XMM0 = 0x11,
|
|
REGISTER_AMD64_XMM1 = 0x12,
|
|
REGISTER_AMD64_XMM10 = 0x1b,
|
|
REGISTER_AMD64_XMM11 = 0x1c,
|
|
REGISTER_AMD64_XMM12 = 0x1d,
|
|
REGISTER_AMD64_XMM13 = 30,
|
|
REGISTER_AMD64_XMM14 = 0x1f,
|
|
REGISTER_AMD64_XMM15 = 0x20,
|
|
REGISTER_AMD64_XMM2 = 0x13,
|
|
REGISTER_AMD64_XMM3 = 20,
|
|
REGISTER_AMD64_XMM4 = 0x15,
|
|
REGISTER_AMD64_XMM5 = 0x16,
|
|
REGISTER_AMD64_XMM6 = 0x17,
|
|
REGISTER_AMD64_XMM7 = 0x18,
|
|
REGISTER_AMD64_XMM8 = 0x19,
|
|
REGISTER_AMD64_XMM9 = 0x1a,
|
|
REGISTER_FRAME_POINTER = 2,
|
|
REGISTER_IA64_BSP = 2,
|
|
REGISTER_IA64_F0 = 0x83,
|
|
REGISTER_IA64_R0 = 3,
|
|
REGISTER_INSTRUCTION_POINTER = 0,
|
|
REGISTER_STACK_POINTER = 1,
|
|
REGISTER_X86_EAX = 3,
|
|
REGISTER_X86_EBP = 2,
|
|
REGISTER_X86_EBX = 6,
|
|
REGISTER_X86_ECX = 4,
|
|
REGISTER_X86_EDI = 8,
|
|
REGISTER_X86_EDX = 5,
|
|
REGISTER_X86_EIP = 0,
|
|
REGISTER_X86_ESI = 7,
|
|
REGISTER_X86_ESP = 1,
|
|
REGISTER_X86_FPSTACK_0 = 9,
|
|
REGISTER_X86_FPSTACK_1 = 10,
|
|
REGISTER_X86_FPSTACK_2 = 11,
|
|
REGISTER_X86_FPSTACK_3 = 12,
|
|
REGISTER_X86_FPSTACK_4 = 13,
|
|
REGISTER_X86_FPSTACK_5 = 14,
|
|
REGISTER_X86_FPSTACK_6 = 15,
|
|
REGISTER_X86_FPSTACK_7 = 0x10
|
|
}
|
|
|
|
public enum CorDebugStepReason
|
|
{
|
|
STEP_NORMAL,
|
|
STEP_RETURN,
|
|
STEP_CALL,
|
|
STEP_EXCEPTION_FILTER,
|
|
STEP_EXCEPTION_HANDLER,
|
|
STEP_INTERCEPT,
|
|
STEP_EXIT
|
|
}
|
|
|
|
public enum CorDebugThreadState
|
|
{
|
|
THREAD_RUN,
|
|
THREAD_SUSPEND
|
|
}
|
|
|
|
public enum CorDebugUnmappedStop
|
|
{
|
|
STOP_ALL = 0xffff,
|
|
STOP_EPILOG = 2,
|
|
STOP_NO_MAPPING_INFO = 4,
|
|
STOP_NONE = 0,
|
|
STOP_OTHER_UNMAPPED = 8,
|
|
STOP_PROLOG = 1,
|
|
STOP_UNMANAGED = 0x10
|
|
}
|
|
|
|
public enum CorDebugUserState
|
|
{
|
|
USER_BACKGROUND = 4,
|
|
USER_STOP_REQUESTED = 1,
|
|
USER_STOPPED = 0x10,
|
|
USER_SUSPEND_REQUESTED = 2,
|
|
USER_SUSPENDED = 0x40,
|
|
USER_UNSAFE_POINT = 0x80,
|
|
USER_UNSTARTED = 8,
|
|
USER_WAIT_SLEEP_JOIN = 0x20
|
|
}
|
|
|
|
public enum CorElementType: uint
|
|
{
|
|
END = 0x0,
|
|
VOID = 0x1,
|
|
BOOLEAN = 0x2,
|
|
CHAR = 0x3,
|
|
I1 = 0x4,
|
|
U1 = 0x5,
|
|
I2 = 0x6,
|
|
U2 = 0x7,
|
|
I4 = 0x8,
|
|
U4 = 0x9,
|
|
I8 = 0xa,
|
|
U8 = 0xb,
|
|
R4 = 0xc,
|
|
R8 = 0xd,
|
|
STRING = 0xe,
|
|
|
|
// every type above PTR will be simple type
|
|
PTR = 0xf, // PTR <type>
|
|
BYREF = 0x10, // BYREF <type>
|
|
|
|
// Please use VALUETYPE. VALUECLASS is deprecated.
|
|
VALUETYPE = 0x11, // VALUETYPE <class Token>
|
|
CLASS = 0x12, // CLASS <class Token>
|
|
VAR = 0x13,
|
|
ARRAY = 0x14, // MDARRAY <type> <rank> <bcount> <bound1> ... <lbcount> <lb1> ...
|
|
GENERICINST = 0x15,
|
|
TYPEDBYREF = 0x16, // This is a simple type.
|
|
|
|
I = 0x18, // native integer size
|
|
U = 0x19, // native unsigned integer size
|
|
FNPTR = 0x1B, // FNPTR <complete sig for the corFunction including calling convention>
|
|
OBJECT = 0x1C, // Shortcut for System.Object
|
|
SZARRAY = 0x1D, // Shortcut for single dimension zero lower bound array
|
|
// SZARRAY <type>
|
|
|
|
// This is only for binding
|
|
CMOD_REQD = 0x1F, // required C modifier : E_T_CMOD_REQD <mdTypeRef/mdTypeDef>
|
|
CMOD_OPT = 0x20, // optional C modifier : E_T_CMOD_OPT <mdTypeRef/mdTypeDef>
|
|
|
|
// This is for signatures generated internally (which will not be persisted in any way).
|
|
INTERNAL = 0x21, // INTERNAL <typehandle>
|
|
|
|
// Note that this is the max of base type excluding modifiers
|
|
MAX = 0x22, // first invalid element type
|
|
|
|
MODIFIER = 0x40,
|
|
SENTINEL = 0x01 | MODIFIER, // sentinel for varargs
|
|
PINNED = 0x05 | MODIFIER,
|
|
|
|
}
|
|
|
|
[ComImport, Guid("3D6F5F61-7538-11D3-8D5B-00104B35E7EF"), CoClass(typeof(EmbeddedCLRCorDebugClass))]
|
|
public interface EmbeddedCLRCorDebug : ICorDebug
|
|
{
|
|
}
|
|
|
|
[ComImport, Guid("211F1254-BC7E-4AF5-B9AA-067308D83DD1"), ClassInterface((short) 0), TypeLibType((short) 2)]
|
|
public class EmbeddedCLRCorDebugClass : ICorDebug, EmbeddedCLRCorDebug
|
|
{
|
|
// Methods
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
public virtual extern void __CanLaunchOrAttach([In] uint dwProcessId, [In] int win32DebuggingEnabled);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
public virtual extern void __CreateProcess([In, MarshalAs(UnmanagedType.LPWStr)] string lpApplicationName, [In, MarshalAs(UnmanagedType.LPWStr)] string lpCommandLine, [In] ref _SECURITY_ATTRIBUTES lpProcessAttributes, [In] ref _SECURITY_ATTRIBUTES lpThreadAttributes, [In] int bInheritHandles, [In] uint dwCreationFlags, [In] IntPtr lpEnvironment, [In, MarshalAs(UnmanagedType.LPWStr)] string lpCurrentDirectory, [In, ComAliasName("Debugger.Interop.CorDebug.ULONG_PTR")] uint lpStartupInfo, [In, ComAliasName("Debugger.Interop.CorDebug.ULONG_PTR")] uint lpProcessInformation, [In] CorDebugCreateProcessFlags debuggingFlags, [MarshalAs(UnmanagedType.Interface)] out ICorDebugProcess ppProcess);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
public virtual extern void __DebugActiveProcess([In] uint id, [In] int win32Attach, [MarshalAs(UnmanagedType.Interface)] out ICorDebugProcess ppProcess);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
public virtual extern void __EnumerateProcesses([MarshalAs(UnmanagedType.Interface)] out ICorDebugProcessEnum ppProcess);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
public virtual extern void __GetProcess([In] uint dwProcessId, [MarshalAs(UnmanagedType.Interface)] out ICorDebugProcess ppProcess);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
public virtual extern void __Initialize();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
public virtual extern void __SetManagedHandler([In, MarshalAs(UnmanagedType.Interface)] ICorDebugManagedCallback pCallback);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
public virtual extern void __SetUnmanagedHandler([In, MarshalAs(UnmanagedType.Interface)] ICorDebugUnmanagedCallback pCallback);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
public virtual extern void __Terminate();
|
|
}
|
|
|
|
[ComImport, Guid("3D6F5F61-7538-11D3-8D5B-00104B35E7EF"), InterfaceType((short) 1)]
|
|
public interface ICorDebug
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Initialize();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Terminate();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetManagedHandler([In, MarshalAs(UnmanagedType.Interface)] ICorDebugManagedCallback pCallback);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetUnmanagedHandler([In, MarshalAs(UnmanagedType.Interface)] ICorDebugUnmanagedCallback pCallback);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateProcess([In, MarshalAs(UnmanagedType.LPWStr)] string lpApplicationName, [In, MarshalAs(UnmanagedType.LPWStr)] string lpCommandLine, [In] ref _SECURITY_ATTRIBUTES lpProcessAttributes, [In] ref _SECURITY_ATTRIBUTES lpThreadAttributes, [In] int bInheritHandles, [In] uint dwCreationFlags, [In] IntPtr lpEnvironment, [In, MarshalAs(UnmanagedType.LPWStr)] string lpCurrentDirectory, [In, ComAliasName("Debugger.Interop.CorDebug.ULONG_PTR")] uint lpStartupInfo, [In, ComAliasName("Debugger.Interop.CorDebug.ULONG_PTR")] uint lpProcessInformation, [In] CorDebugCreateProcessFlags debuggingFlags, [MarshalAs(UnmanagedType.Interface)] out ICorDebugProcess ppProcess);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __DebugActiveProcess([In] uint id, [In] int win32Attach, [MarshalAs(UnmanagedType.Interface)] out ICorDebugProcess ppProcess);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __EnumerateProcesses([MarshalAs(UnmanagedType.Interface)] out ICorDebugProcessEnum ppProcess);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetProcess([In] uint dwProcessId, [MarshalAs(UnmanagedType.Interface)] out ICorDebugProcess ppProcess);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CanLaunchOrAttach([In] uint dwProcessId, [In] int win32DebuggingEnabled);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("3D6F5F63-7538-11D3-8D5B-00104B35E7EF"), ComConversionLoss]
|
|
public interface ICorDebugAppDomain : ICorDebugController
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Stop([In] uint dwTimeoutIgnored);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Continue([In] int fIsOutOfBand);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsRunning(out int pbRunning);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __HasQueuedCallbacks([In, MarshalAs(UnmanagedType.Interface)] ICorDebugThread pThread, out int pbQueued);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __EnumerateThreads([MarshalAs(UnmanagedType.Interface)] out ICorDebugThreadEnum ppThreads);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetAllThreadsDebugState([In] CorDebugThreadState state, [In, MarshalAs(UnmanagedType.Interface)] ICorDebugThread pExceptThisThread);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Detach();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Terminate([In] uint exitCode);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CanCommitChanges([In] uint cSnapshots, [In, MarshalAs(UnmanagedType.Interface)] ref ICorDebugEditAndContinueSnapshot pSnapshots, [MarshalAs(UnmanagedType.Interface)] out ICorDebugErrorInfoEnum pError);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CommitChanges([In] uint cSnapshots, [In, MarshalAs(UnmanagedType.Interface)] ref ICorDebugEditAndContinueSnapshot pSnapshots, [MarshalAs(UnmanagedType.Interface)] out ICorDebugErrorInfoEnum pError);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetProcess([MarshalAs(UnmanagedType.Interface)] out ICorDebugProcess ppProcess);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __EnumerateAssemblies([MarshalAs(UnmanagedType.Interface)] out ICorDebugAssemblyEnum ppAssemblies);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetModuleFromMetaDataInterface([In, MarshalAs(UnmanagedType.IUnknown)] object pIMetaData, [MarshalAs(UnmanagedType.Interface)] out ICorDebugModule ppModule);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __EnumerateBreakpoints([MarshalAs(UnmanagedType.Interface)] out ICorDebugBreakpointEnum ppBreakpoints);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __EnumerateSteppers([MarshalAs(UnmanagedType.Interface)] out ICorDebugStepperEnum ppSteppers);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsAttached(out int pbAttached);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetName([In] uint cchName, out uint pcchName, [Out] IntPtr szName);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetObject([MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppObject);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Attach();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetID(out uint pId);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("096E81D5-ECDA-4202-83F5-C65980A9EF75")]
|
|
public interface ICorDebugAppDomain2
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetArrayOrPointerType([In] uint elementType, [In] uint nRank, [In, MarshalAs(UnmanagedType.Interface)] ICorDebugType pTypeArg, [MarshalAs(UnmanagedType.Interface)] out ICorDebugType ppType);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetFunctionPointerType([In] uint nTypeArgs, [In, MarshalAs(UnmanagedType.Interface)] ref ICorDebugType ppTypeArgs, [MarshalAs(UnmanagedType.Interface)] out ICorDebugType ppType);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("63CA1B24-4359-4883-BD57-13F815F58744"), ComConversionLoss]
|
|
public interface ICorDebugAppDomainEnum : ICorDebugEnum
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Skip([In] uint celt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Reset();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Clone([MarshalAs(UnmanagedType.Interface)] out ICorDebugEnum ppEnum);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCount(out uint pcelt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Next([In] uint celt, [Out] IntPtr values, out uint pceltFetched);
|
|
}
|
|
|
|
[ComImport, Guid("0405B0DF-A660-11D2-BD02-0000F80849BD"), InterfaceType((short) 1), ComConversionLoss]
|
|
public interface ICorDebugArrayValue : ICorDebugHeapValue
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetType(out uint pType);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetSize(out uint pSize);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetAddress(out ulong pAddress);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateBreakpoint([MarshalAs(UnmanagedType.Interface)] out ICorDebugValueBreakpoint ppBreakpoint);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsValid(out int pbValid);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateRelocBreakpoint([MarshalAs(UnmanagedType.Interface)] out ICorDebugValueBreakpoint ppBreakpoint);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetElementType(out uint pType);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetRank(out uint pnRank);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCount(out uint pnCount);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetDimensions([In] uint cdim, [Out] IntPtr dims);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __HasBaseIndicies(out int pbHasBaseIndicies);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetBaseIndicies([In] uint cdim, [Out] IntPtr indicies);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetElement([In] uint cdim, [In] IntPtr indices, [MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppValue);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetElementAtPosition([In] uint nPosition, [MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppValue);
|
|
}
|
|
|
|
[ComImport, Guid("DF59507C-D47A-459E-BCE2-6427EAC8FD06"), InterfaceType((short) 1), ComConversionLoss]
|
|
public interface ICorDebugAssembly
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetProcess([MarshalAs(UnmanagedType.Interface)] out ICorDebugProcess ppProcess);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetAppDomain([MarshalAs(UnmanagedType.Interface)] out ICorDebugAppDomain ppAppDomain);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __EnumerateModules([MarshalAs(UnmanagedType.Interface)] out ICorDebugModuleEnum ppModules);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCodeBase([In] uint cchName, out uint pcchName, [Out] IntPtr szName);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetName([In] uint cchName, out uint pcchName, [Out] IntPtr szName);
|
|
}
|
|
|
|
[ComImport, Guid("426D1F9E-6DD4-44C8-AEC7-26CDBAF4E398"), InterfaceType((short) 1)]
|
|
public interface ICorDebugAssembly2
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsFullyTrusted(out int pbFullyTrusted);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("4A2A1EC9-85EC-4BFB-9F15-A89FDFE0FE83"), ComConversionLoss]
|
|
public interface ICorDebugAssemblyEnum : ICorDebugEnum
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Skip([In] uint celt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Reset();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Clone([MarshalAs(UnmanagedType.Interface)] out ICorDebugEnum ppEnum);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCount(out uint pcelt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Next([In] uint celt, [Out] IntPtr values, out uint pceltFetched);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("CC7BCAFC-8A68-11D2-983C-0000F808342D")]
|
|
public interface ICorDebugBoxValue : ICorDebugHeapValue
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetType(out uint pType);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetSize(out uint pSize);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetAddress(out ulong pAddress);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateBreakpoint([MarshalAs(UnmanagedType.Interface)] out ICorDebugValueBreakpoint ppBreakpoint);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsValid(out int pbValid);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateRelocBreakpoint([MarshalAs(UnmanagedType.Interface)] out ICorDebugValueBreakpoint ppBreakpoint);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetObject([MarshalAs(UnmanagedType.Interface)] out ICorDebugObjectValue ppObject);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("CC7BCAE8-8A68-11D2-983C-0000F808342D")]
|
|
public interface ICorDebugBreakpoint
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Activate([In] int bActive);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsActive(out int pbActive);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("CC7BCB03-8A68-11D2-983C-0000F808342D"), ComConversionLoss]
|
|
public interface ICorDebugBreakpointEnum : ICorDebugEnum
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Skip([In] uint celt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Reset();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Clone([MarshalAs(UnmanagedType.Interface)] out ICorDebugEnum ppEnum);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCount(out uint pcelt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Next([In] uint celt, [Out] IntPtr breakpoints, out uint pceltFetched);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("CC7BCAEE-8A68-11D2-983C-0000F808342D")]
|
|
public interface ICorDebugChain
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetThread([MarshalAs(UnmanagedType.Interface)] out ICorDebugThread ppThread);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetStackRange(out ulong pStart, out ulong pEnd);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetContext([MarshalAs(UnmanagedType.Interface)] out ICorDebugContext ppContext);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCaller([MarshalAs(UnmanagedType.Interface)] out ICorDebugChain ppChain);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCallee([MarshalAs(UnmanagedType.Interface)] out ICorDebugChain ppChain);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetPrevious([MarshalAs(UnmanagedType.Interface)] out ICorDebugChain ppChain);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetNext([MarshalAs(UnmanagedType.Interface)] out ICorDebugChain ppChain);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsManaged(out int pManaged);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __EnumerateFrames([MarshalAs(UnmanagedType.Interface)] out ICorDebugFrameEnum ppFrames);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetActiveFrame([MarshalAs(UnmanagedType.Interface)] out ICorDebugFrame ppFrame);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetRegisterSet([MarshalAs(UnmanagedType.Interface)] out ICorDebugRegisterSet ppRegisters);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetReason(out CorDebugChainReason pReason);
|
|
}
|
|
|
|
[ComImport, ComConversionLoss, InterfaceType((short) 1), Guid("CC7BCB08-8A68-11D2-983C-0000F808342D")]
|
|
public interface ICorDebugChainEnum : ICorDebugEnum
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Skip([In] uint celt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Reset();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Clone([MarshalAs(UnmanagedType.Interface)] out ICorDebugEnum ppEnum);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCount(out uint pcelt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Next([In] uint celt, [Out, MarshalAs(UnmanagedType.LPArray)] ICorDebugChain[] chains, out uint pceltFetched);
|
|
}
|
|
|
|
[ComImport, Guid("CC7BCAF5-8A68-11D2-983C-0000F808342D"), InterfaceType((short) 1)]
|
|
public interface ICorDebugClass
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetModule([MarshalAs(UnmanagedType.Interface)] out ICorDebugModule pModule);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetToken(out uint pTypeDef);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetStaticFieldValue([In] uint fieldDef, [In, MarshalAs(UnmanagedType.Interface)] ICorDebugFrame pFrame, [MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppValue);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("B008EA8D-7AB1-43F7-BB20-FBB5A04038AE")]
|
|
public interface ICorDebugClass2
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetParameterizedType([In] uint elementType, [In] uint nTypeArgs, [In, MarshalAs(UnmanagedType.LPArray)] ICorDebugType[] ppTypeArgs, [MarshalAs(UnmanagedType.Interface)] out ICorDebugType ppType);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetJMCStatus([In] int bIsJustMyCode);
|
|
}
|
|
|
|
[ComImport, ComConversionLoss, Guid("CC7BCAF4-8A68-11D2-983C-0000F808342D"), InterfaceType((short) 1)]
|
|
public interface ICorDebugCode
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsIL(out int pbIL);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetFunction([MarshalAs(UnmanagedType.Interface)] out ICorDebugFunction ppFunction);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetAddress(out ulong pStart);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetSize(out uint pcBytes);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateBreakpoint([In] uint offset, [MarshalAs(UnmanagedType.Interface)] out ICorDebugFunctionBreakpoint ppBreakpoint);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCode([In] uint startOffset, [In] uint endOffset, [In] uint cBufferAlloc, [Out] IntPtr buffer, out uint pcBufferSize);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetVersionNumber(out uint nVersion);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetILToNativeMapping([In] uint cMap, out uint pcMap, [Out] IntPtr map);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetEnCRemapSequencePoints([In] uint cMap, out uint pcMap, [Out] IntPtr offsets);
|
|
}
|
|
|
|
[ComImport, Guid("55E96461-9645-45E4-A2FF-0367877ABCDE"), InterfaceType((short) 1), ComConversionLoss]
|
|
public interface ICorDebugCodeEnum : ICorDebugEnum
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Skip([In] uint celt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Reset();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Clone([MarshalAs(UnmanagedType.Interface)] out ICorDebugEnum ppEnum);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCount(out uint pcelt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Next([In] uint celt, [Out] IntPtr values, out uint pceltFetched);
|
|
}
|
|
|
|
[ComImport, Guid("CC7BCB00-8A68-11D2-983C-0000F808342D"), InterfaceType((short) 1)]
|
|
public interface ICorDebugContext : ICorDebugObjectValue
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetType(out uint pType);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetSize(out uint pSize);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetAddress(out ulong pAddress);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateBreakpoint([MarshalAs(UnmanagedType.Interface)] out ICorDebugValueBreakpoint ppBreakpoint);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetClass([MarshalAs(UnmanagedType.Interface)] out ICorDebugClass ppClass);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetFieldValue([In, MarshalAs(UnmanagedType.Interface)] ICorDebugClass pClass, [In] uint fieldDef, [MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppValue);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetVirtualMethod([In] uint memberRef, [MarshalAs(UnmanagedType.Interface)] out ICorDebugFunction ppFunction);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetContext([MarshalAs(UnmanagedType.Interface)] out ICorDebugContext ppContext);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsValueClass(out int pbIsValueClass);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetManagedCopy([MarshalAs(UnmanagedType.IUnknown)] out object ppObject);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetFromManagedCopy([In, MarshalAs(UnmanagedType.IUnknown)] object pObject);
|
|
}
|
|
|
|
[ComImport, Guid("3D6F5F62-7538-11D3-8D5B-00104B35E7EF"), InterfaceType((short) 1)]
|
|
public interface ICorDebugController
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Stop([In] uint dwTimeoutIgnored);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Continue([In] int fIsOutOfBand);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsRunning(out int pbRunning);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __HasQueuedCallbacks([In, MarshalAs(UnmanagedType.Interface)] ICorDebugThread pThread, out int pbQueued);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __EnumerateThreads([MarshalAs(UnmanagedType.Interface)] out ICorDebugThreadEnum ppThreads);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetAllThreadsDebugState([In] CorDebugThreadState state, [In, MarshalAs(UnmanagedType.Interface)] ICorDebugThread pExceptThisThread);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Detach();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Terminate([In] uint exitCode);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CanCommitChanges([In] uint cSnapshots, [In, MarshalAs(UnmanagedType.Interface)] ref ICorDebugEditAndContinueSnapshot pSnapshots, [MarshalAs(UnmanagedType.Interface)] out ICorDebugErrorInfoEnum pError);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CommitChanges([In] uint cSnapshots, [In, MarshalAs(UnmanagedType.Interface)] ref ICorDebugEditAndContinueSnapshot pSnapshots, [MarshalAs(UnmanagedType.Interface)] out ICorDebugErrorInfoEnum pError);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("6DC3FA01-D7CB-11D2-8A95-0080C792E5D8")]
|
|
public interface ICorDebugEditAndContinueSnapshot
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CopyMetaData([In, MarshalAs(UnmanagedType.Interface)] IStream pIStream, out Guid pMvid);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetMvid(out Guid pMvid);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetRoDataRVA(out uint pRoDataRVA);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetRwDataRVA(out uint pRwDataRVA);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetPEBytes([In, MarshalAs(UnmanagedType.Interface)] IStream pIStream);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetILMap([In] uint mdFunction, [In] uint cMapSize, [In] ref _COR_IL_MAP map);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetPESymbolBytes([In, MarshalAs(UnmanagedType.Interface)] IStream pIStream);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("CC7BCB01-8A68-11D2-983C-0000F808342D")]
|
|
public interface ICorDebugEnum
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Skip([In] uint celt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Reset();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Clone([MarshalAs(UnmanagedType.Interface)] out ICorDebugEnum ppEnum);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCount(out uint pcelt);
|
|
}
|
|
|
|
[ComImport, ComConversionLoss, Guid("F0E18809-72B5-11D2-976F-00A0C9B4D50C"), InterfaceType((short) 1)]
|
|
public interface ICorDebugErrorInfoEnum : ICorDebugEnum
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Skip([In] uint celt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Reset();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Clone([MarshalAs(UnmanagedType.Interface)] out ICorDebugEnum ppEnum);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCount(out uint pcelt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Next([In] uint celt, [Out] IntPtr errors, out uint pceltFetched);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("CC7BCAF6-8A68-11D2-983C-0000F808342D")]
|
|
public interface ICorDebugEval
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CallFunction([In, MarshalAs(UnmanagedType.Interface)] ICorDebugFunction pFunction, [In] uint nArgs, [In, MarshalAs(UnmanagedType.LPArray)] ICorDebugValue[] ppArgs);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __NewObject([In, MarshalAs(UnmanagedType.Interface)] ICorDebugFunction pConstructor, [In] uint nArgs, [In, MarshalAs(UnmanagedType.Interface)] ref ICorDebugValue ppArgs);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __NewObjectNoConstructor([In, MarshalAs(UnmanagedType.Interface)] ICorDebugClass pClass);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __NewString([In, MarshalAs(UnmanagedType.LPWStr)] string @string);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __NewArray([In] uint elementType, [In, MarshalAs(UnmanagedType.Interface)] ICorDebugClass pElementClass, [In] uint rank, [In] ref uint dims, [In] ref uint lowBounds);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsActive(out int pbActive);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Abort();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetResult([MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppResult);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetThread([MarshalAs(UnmanagedType.Interface)] out ICorDebugThread ppThread);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateValue([In] uint elementType, [In, MarshalAs(UnmanagedType.Interface)] ICorDebugClass pElementClass, [MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppValue);
|
|
}
|
|
|
|
[ComImport, Guid("FB0D9CE7-BE66-4683-9D32-A42A04E2FD91"), InterfaceType((short) 1)]
|
|
public interface ICorDebugEval2
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CallParameterizedFunction([In, MarshalAs(UnmanagedType.Interface)] ICorDebugFunction pFunction, [In] uint nTypeArgs, [In, MarshalAs(UnmanagedType.LPArray)] ICorDebugType[] ppTypeArgs, [In] uint nArgs, [In, MarshalAs(UnmanagedType.LPArray)] ICorDebugValue[] ppArgs);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateValueForType([In, MarshalAs(UnmanagedType.Interface)] ICorDebugType pType, [MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppValue);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __NewParameterizedObject([In, MarshalAs(UnmanagedType.Interface)] ICorDebugFunction pConstructor, [In] uint nTypeArgs, [In, MarshalAs(UnmanagedType.LPArray)] ICorDebugType[] ppTypeArgs, [In] uint nArgs, [In, MarshalAs(UnmanagedType.LPArray)] ICorDebugValue[] ppArgs);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __NewParameterizedObjectNoConstructor([In, MarshalAs(UnmanagedType.Interface)] ICorDebugClass pClass, [In] uint nTypeArgs, [In, MarshalAs(UnmanagedType.LPArray)] ICorDebugType[] ppTypeArgs);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __NewParameterizedArray([In, MarshalAs(UnmanagedType.Interface)] ICorDebugType pElementType, [In] uint rank, [In, MarshalAs(UnmanagedType.LPArray)] uint[] dims, [In, MarshalAs(UnmanagedType.LPArray)] uint[] lowBounds);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __NewStringWithLength([In, MarshalAs(UnmanagedType.LPWStr)] string @string, [In] uint uiLength);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __RudeAbort();
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("CC7BCAEF-8A68-11D2-983C-0000F808342D")]
|
|
public interface ICorDebugFrame
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetChain([MarshalAs(UnmanagedType.Interface)] out ICorDebugChain ppChain);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCode([MarshalAs(UnmanagedType.Interface)] out ICorDebugCode ppCode);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetFunction([MarshalAs(UnmanagedType.Interface)] out ICorDebugFunction ppFunction);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetFunctionToken(out uint pToken);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetStackRange(out ulong pStart, out ulong pEnd);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCaller([MarshalAs(UnmanagedType.Interface)] out ICorDebugFrame ppFrame);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCallee([MarshalAs(UnmanagedType.Interface)] out ICorDebugFrame ppFrame);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateStepper([MarshalAs(UnmanagedType.Interface)] out ICorDebugStepper ppStepper);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), ComConversionLoss, Guid("CC7BCB07-8A68-11D2-983C-0000F808342D")]
|
|
public interface ICorDebugFrameEnum : ICorDebugEnum
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Skip([In] uint celt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Reset();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Clone([MarshalAs(UnmanagedType.Interface)] out ICorDebugEnum ppEnum);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCount(out uint pcelt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Next([In] uint celt, [Out, MarshalAs(UnmanagedType.LPArray)] ICorDebugFrame[] frames, out uint pceltFetched);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("CC7BCAF3-8A68-11D2-983C-0000F808342D")]
|
|
public interface ICorDebugFunction
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetModule([MarshalAs(UnmanagedType.Interface)] out ICorDebugModule ppModule);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetClass([MarshalAs(UnmanagedType.Interface)] out ICorDebugClass ppClass);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetToken(out uint pMethodDef);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetILCode([MarshalAs(UnmanagedType.Interface)] out ICorDebugCode ppCode);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetNativeCode([MarshalAs(UnmanagedType.Interface)] out ICorDebugCode ppCode);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateBreakpoint([MarshalAs(UnmanagedType.Interface)] out ICorDebugFunctionBreakpoint ppBreakpoint);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetLocalVarSigToken(out uint pmdSig);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCurrentVersionNumber(out uint pnCurrentVersion);
|
|
}
|
|
|
|
[ComImport, Guid("EF0C490B-94C3-4E4D-B629-DDC134C532D8"), InterfaceType((short) 1)]
|
|
public interface ICorDebugFunction2
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetJMCStatus([In] int bIsJustMyCode);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetJMCStatus(out int pbIsJustMyCode);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __EnumerateNativeCode([MarshalAs(UnmanagedType.Interface)] out ICorDebugCodeEnum ppCodeEnum);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetVersionNumber(out uint pnVersion);
|
|
}
|
|
|
|
[ComImport, Guid("CC7BCAE9-8A68-11D2-983C-0000F808342D"), InterfaceType((short) 1)]
|
|
public interface ICorDebugFunctionBreakpoint : ICorDebugBreakpoint
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Activate([In] int bActive);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsActive(out int pbActive);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetFunction([MarshalAs(UnmanagedType.Interface)] out ICorDebugFunction ppFunction);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetOffset(out uint pnOffset);
|
|
}
|
|
|
|
[ComImport, Guid("CC7BCAF8-8A68-11D2-983C-0000F808342D"), InterfaceType((short) 1)]
|
|
public interface ICorDebugGenericValue : ICorDebugValue
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetType(out uint pType);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetSize(out uint pSize);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetAddress(out ulong pAddress);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateBreakpoint([MarshalAs(UnmanagedType.Interface)] out ICorDebugValueBreakpoint ppBreakpoint);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetValue([Out] IntPtr pTo);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetValue([In] IntPtr pFrom);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("029596E8-276B-46A1-9821-732E96BBB00B")]
|
|
public interface ICorDebugHandleValue : ICorDebugReferenceValue
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetType(out uint pType);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetSize(out uint pSize);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetAddress(out ulong pAddress);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateBreakpoint([MarshalAs(UnmanagedType.Interface)] out ICorDebugValueBreakpoint ppBreakpoint);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsNull(out int pbNull);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetValue(out ulong pValue);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetValue([In] ulong value);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Dereference([MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppValue);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __DereferenceStrong([MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppValue);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetHandleType(out CorDebugHandleType pType);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Dispose();
|
|
}
|
|
|
|
[ComImport, Guid("CC7BCAFA-8A68-11D2-983C-0000F808342D"), InterfaceType((short) 1)]
|
|
public interface ICorDebugHeapValue : ICorDebugValue
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetType(out uint pType);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetSize(out uint pSize);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetAddress(out ulong pAddress);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateBreakpoint([MarshalAs(UnmanagedType.Interface)] out ICorDebugValueBreakpoint ppBreakpoint);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsValid(out int pbValid);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateRelocBreakpoint([MarshalAs(UnmanagedType.Interface)] out ICorDebugValueBreakpoint ppBreakpoint);
|
|
}
|
|
|
|
[ComImport, Guid("E3AC4D6C-9CB7-43E6-96CC-B21540E5083C"), InterfaceType((short) 1)]
|
|
public interface ICorDebugHeapValue2
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateHandle([In] CorDebugHandleType type, [MarshalAs(UnmanagedType.Interface)] out ICorDebugHandleValue ppHandle);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("03E26311-4F76-11D3-88C6-006097945418")]
|
|
public interface ICorDebugILFrame : ICorDebugFrame
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetChain([MarshalAs(UnmanagedType.Interface)] out ICorDebugChain ppChain);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCode([MarshalAs(UnmanagedType.Interface)] out ICorDebugCode ppCode);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetFunction([MarshalAs(UnmanagedType.Interface)] out ICorDebugFunction ppFunction);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetFunctionToken(out uint pToken);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetStackRange(out ulong pStart, out ulong pEnd);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCaller([MarshalAs(UnmanagedType.Interface)] out ICorDebugFrame ppFrame);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCallee([MarshalAs(UnmanagedType.Interface)] out ICorDebugFrame ppFrame);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateStepper([MarshalAs(UnmanagedType.Interface)] out ICorDebugStepper ppStepper);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetIP(out uint pnOffset, out CorDebugMappingResult pMappingResult);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetIP([In] uint nOffset);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __EnumerateLocalVariables([MarshalAs(UnmanagedType.Interface)] out ICorDebugValueEnum ppValueEnum);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetLocalVariable([In] uint dwIndex, [MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppValue);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __EnumerateArguments([MarshalAs(UnmanagedType.Interface)] out ICorDebugValueEnum ppValueEnum);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetArgument([In] uint dwIndex, [MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppValue);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetStackDepth(out uint pDepth);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetStackValue([In] uint dwIndex, [MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppValue);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CanSetIP([In] uint nOffset);
|
|
}
|
|
|
|
[ComImport, Guid("5D88A994-6C30-479B-890F-BCEF88B129A5"), InterfaceType((short) 1)]
|
|
public interface ICorDebugILFrame2
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __RemapFunction([In] uint newILOffset);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __EnumerateTypeParameters([MarshalAs(UnmanagedType.Interface)] out ICorDebugTypeEnum ppTyParEnum);
|
|
}
|
|
|
|
[ComImport, Guid("B92CC7F7-9D2D-45C4-BC2B-621FCC9DFBF4"), InterfaceType((short) 1)]
|
|
public interface ICorDebugInternalFrame : ICorDebugFrame
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetChain([MarshalAs(UnmanagedType.Interface)] out ICorDebugChain ppChain);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCode([MarshalAs(UnmanagedType.Interface)] out ICorDebugCode ppCode);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetFunction([MarshalAs(UnmanagedType.Interface)] out ICorDebugFunction ppFunction);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetFunctionToken(out uint pToken);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetStackRange(out ulong pStart, out ulong pEnd);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCaller([MarshalAs(UnmanagedType.Interface)] out ICorDebugFrame ppFrame);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCallee([MarshalAs(UnmanagedType.Interface)] out ICorDebugFrame ppFrame);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateStepper([MarshalAs(UnmanagedType.Interface)] out ICorDebugStepper ppStepper);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetFrameType(out CorDebugInternalFrameType pType);
|
|
}
|
|
|
|
[ComImport, ComConversionLoss, Guid("CC726F2F-1DB7-459B-B0EC-05F01D841B42"), InterfaceType((short) 1)]
|
|
public interface ICorDebugMDA
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetName([In] uint cchName, out uint pcchName, [Out] IntPtr szName);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetDescription([In] uint cchName, out uint pcchName, [Out] IntPtr szName);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetXML([In] uint cchName, out uint pcchName, [Out] IntPtr szName);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetFlags([In] ref CorDebugMDAFlags pFlags);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetOSThreadId(out uint pOsTid);
|
|
}
|
|
|
|
[ComImport, Guid("3D6F5F60-7538-11D3-8D5B-00104B35E7EF"), InterfaceType((short) 1)]
|
|
public interface ICorDebugManagedCallback
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void Breakpoint([In] IntPtr pAppDomain, [In] IntPtr pThread, [In] IntPtr pBreakpoint);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void StepComplete([In] IntPtr pAppDomain, [In] IntPtr pThread, [In] IntPtr pStepper, [In] CorDebugStepReason reason);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void Break([In] IntPtr pAppDomain, [In] IntPtr thread);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void Exception([In] IntPtr pAppDomain, [In] IntPtr pThread, [In] int unhandled);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void EvalComplete([In] IntPtr pAppDomain, [In] IntPtr pThread, [In] IntPtr pEval);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void EvalException([In] IntPtr pAppDomain, [In] IntPtr pThread, [In] IntPtr pEval);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void CreateProcess([In] IntPtr pProcess);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void ExitProcess([In] IntPtr pProcess);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void CreateThread([In] IntPtr pAppDomain, [In] IntPtr thread);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void ExitThread([In] IntPtr pAppDomain, [In] IntPtr thread);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void LoadModule([In] IntPtr pAppDomain, [In] IntPtr pModule);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void UnloadModule([In] IntPtr pAppDomain, [In] IntPtr pModule);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void LoadClass([In] IntPtr pAppDomain, [In] IntPtr c);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void UnloadClass([In] IntPtr pAppDomain, [In] IntPtr c);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void DebuggerError([In] IntPtr pProcess, [In, MarshalAs(UnmanagedType.Error)] int errorHR, [In] uint errorCode);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void LogMessage([In] IntPtr pAppDomain, [In] IntPtr pThread, [In] int lLevel, [In] IntPtr pLogSwitchName, [In] IntPtr pMessage);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void LogSwitch([In] IntPtr pAppDomain, [In] IntPtr pThread, [In] int lLevel, [In] uint ulReason, [In] IntPtr pLogSwitchName, [In] IntPtr pParentName);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void CreateAppDomain([In] IntPtr pProcess, [In] IntPtr pAppDomain);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void ExitAppDomain([In] IntPtr pProcess, [In] IntPtr pAppDomain);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void LoadAssembly([In] IntPtr pAppDomain, [In] IntPtr pAssembly);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void UnloadAssembly([In] IntPtr pAppDomain, [In] IntPtr pAssembly);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void ControlCTrap([In] IntPtr pProcess);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void NameChange([In] IntPtr pAppDomain, [In] IntPtr pThread);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void UpdateModuleSymbols([In] IntPtr pAppDomain, [In] IntPtr pModule, [In] IntPtr pSymbolStream);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void EditAndContinueRemap([In] IntPtr pAppDomain, [In] IntPtr pThread, [In] IntPtr pFunction, [In] int fAccurate);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void BreakpointSetError([In] IntPtr pAppDomain, [In] IntPtr pThread, [In] IntPtr pBreakpoint, [In] uint dwError);
|
|
}
|
|
|
|
[ComImport, Guid("250E5EEA-DB5C-4C76-B6F3-8C46F12E3203"), InterfaceType((short) 1)]
|
|
public interface ICorDebugManagedCallback2
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void FunctionRemapOpportunity([In] IntPtr pAppDomain, [In] IntPtr pThread, [In] IntPtr pOldFunction, [In] IntPtr pNewFunction, [In] uint oldILOffset);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void CreateConnection([In] IntPtr pProcess, [In] uint dwConnectionId, [In] IntPtr pConnName);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void ChangeConnection([In] IntPtr pProcess, [In] uint dwConnectionId);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void DestroyConnection([In] IntPtr pProcess, [In] uint dwConnectionId);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void Exception([In] IntPtr pAppDomain, [In] IntPtr pThread, [In] IntPtr pFrame, [In] uint nOffset, [In] CorDebugExceptionCallbackType dwEventType, [In] uint dwFlags);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void ExceptionUnwind([In] IntPtr pAppDomain, [In] IntPtr pThread, [In] CorDebugExceptionUnwindCallbackType dwEventType, [In] uint dwFlags);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void FunctionRemapComplete([In] IntPtr pAppDomain, [In] IntPtr pThread, [In] IntPtr pFunction);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void MDANotification([In] IntPtr pController, [In] IntPtr pThread, [In] IntPtr pMDA);
|
|
}
|
|
|
|
[ComImport, Guid("DBA2D8C1-E5C5-4069-8C13-10A7C6ABF43D"), ComConversionLoss, InterfaceType((short) 1)]
|
|
public interface ICorDebugModule
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetProcess([MarshalAs(UnmanagedType.Interface)] out ICorDebugProcess ppProcess);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetBaseAddress(out ulong pAddress);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetAssembly([MarshalAs(UnmanagedType.Interface)] out ICorDebugAssembly ppAssembly);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetName([In] uint cchName, out uint pcchName, [Out] IntPtr szName);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __EnableJITDebugging([In] int bTrackJITInfo, [In] int bAllowJitOpts);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __EnableClassLoadCallbacks([In] int bClassLoadCallbacks);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetFunctionFromToken([In] uint methodDef, [MarshalAs(UnmanagedType.Interface)] out ICorDebugFunction ppFunction);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetFunctionFromRVA([In] ulong rva, [MarshalAs(UnmanagedType.Interface)] out ICorDebugFunction ppFunction);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetClassFromToken([In] uint typeDef, [MarshalAs(UnmanagedType.Interface)] out ICorDebugClass ppClass);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateBreakpoint([MarshalAs(UnmanagedType.Interface)] out ICorDebugModuleBreakpoint ppBreakpoint);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetEditAndContinueSnapshot([MarshalAs(UnmanagedType.Interface)] out ICorDebugEditAndContinueSnapshot ppEditAndContinueSnapshot);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetMetaDataInterface([In] ref Guid riid, [MarshalAs(UnmanagedType.IUnknown)] out object ppObj);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetToken(out uint pToken);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsDynamic(out int pDynamic);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetGlobalVariableValue([In] uint fieldDef, [MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppValue);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetSize(out uint pcBytes);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsInMemory(out int pInMemory);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("7FCC5FB5-49C0-41DE-9938-3B88B5B9ADD7")]
|
|
public interface ICorDebugModule2
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetJMCStatus([In] int bIsJustMyCode, [In] uint cTokens, [In] ref uint pTokens);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __ApplyChanges([In] uint cbMetadata, [In, MarshalAs(UnmanagedType.LPArray)] byte[] pbMetadata, [In] uint cbIL, [In, MarshalAs(UnmanagedType.LPArray)] byte[] pbIL);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetJITCompilerFlags([In] uint dwFlags);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetJITCompilerFlags(out uint pdwFlags);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __ResolveAssembly([In] uint tkAssemblyRef, [In, MarshalAs(UnmanagedType.Interface)] ref ICorDebugAssembly ppAssembly);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("86F012BF-FF15-4372-BD30-B6F11CAAE1DD")]
|
|
public interface ICorDebugModule3
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateReaderForInMemorySymbols([In] ref Guid riid, [MarshalAs(UnmanagedType.Interface)] out object ppObj);
|
|
}
|
|
|
|
[ComImport, Guid("CC7BCAEA-8A68-11D2-983C-0000F808342D"), InterfaceType((short) 1)]
|
|
public interface ICorDebugModuleBreakpoint : ICorDebugBreakpoint
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Activate([In] int bActive);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsActive(out int pbActive);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetModule([MarshalAs(UnmanagedType.Interface)] out ICorDebugModule ppModule);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), ComConversionLoss, Guid("CC7BCB09-8A68-11D2-983C-0000F808342D")]
|
|
public interface ICorDebugModuleEnum : ICorDebugEnum
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Skip([In] uint celt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Reset();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Clone([MarshalAs(UnmanagedType.Interface)] out ICorDebugEnum ppEnum);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCount(out uint pcelt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Next([In] uint celt, [Out] IntPtr modules, out uint pceltFetched);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("03E26314-4F76-11D3-88C6-006097945418")]
|
|
public interface ICorDebugNativeFrame : ICorDebugFrame
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetChain([MarshalAs(UnmanagedType.Interface)] out ICorDebugChain ppChain);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCode([MarshalAs(UnmanagedType.Interface)] out ICorDebugCode ppCode);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetFunction([MarshalAs(UnmanagedType.Interface)] out ICorDebugFunction ppFunction);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetFunctionToken(out uint pToken);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetStackRange(out ulong pStart, out ulong pEnd);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCaller([MarshalAs(UnmanagedType.Interface)] out ICorDebugFrame ppFrame);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCallee([MarshalAs(UnmanagedType.Interface)] out ICorDebugFrame ppFrame);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateStepper([MarshalAs(UnmanagedType.Interface)] out ICorDebugStepper ppStepper);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetIP(out uint pnOffset);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetIP([In] uint nOffset);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetRegisterSet([MarshalAs(UnmanagedType.Interface)] out ICorDebugRegisterSet ppRegisters);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetLocalRegisterValue([In] CorDebugRegister reg, [In] uint cbSigBlob, [In, ComAliasName("Debugger.Interop.CorDebug.ULONG_PTR")] uint pvSigBlob, [MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppValue);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetLocalDoubleRegisterValue([In] CorDebugRegister highWordReg, [In] CorDebugRegister lowWordReg, [In] uint cbSigBlob, [In, ComAliasName("Debugger.Interop.CorDebug.ULONG_PTR")] uint pvSigBlob, [MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppValue);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetLocalMemoryValue([In] ulong address, [In] uint cbSigBlob, [In, ComAliasName("Debugger.Interop.CorDebug.ULONG_PTR")] uint pvSigBlob, [MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppValue);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetLocalRegisterMemoryValue([In] CorDebugRegister highWordReg, [In] ulong lowWordAddress, [In] uint cbSigBlob, [In, ComAliasName("Debugger.Interop.CorDebug.ULONG_PTR")] uint pvSigBlob, [MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppValue);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetLocalMemoryRegisterValue([In] ulong highWordAddress, [In] CorDebugRegister lowWordRegister, [In] uint cbSigBlob, [In, ComAliasName("Debugger.Interop.CorDebug.ULONG_PTR")] uint pvSigBlob, [MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppValue);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CanSetIP([In] uint nOffset);
|
|
}
|
|
|
|
[ComImport, ComConversionLoss, InterfaceType((short) 1), Guid("CC7BCB02-8A68-11D2-983C-0000F808342D")]
|
|
public interface ICorDebugObjectEnum : ICorDebugEnum
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Skip([In] uint celt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Reset();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Clone([MarshalAs(UnmanagedType.Interface)] out ICorDebugEnum ppEnum);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCount(out uint pcelt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Next([In] uint celt, [Out] IntPtr objects, out uint pceltFetched);
|
|
}
|
|
|
|
[ComImport, Guid("18AD3D6E-B7D2-11D2-BD04-0000F80849BD"), InterfaceType((short) 1)]
|
|
public interface ICorDebugObjectValue : ICorDebugValue
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetType(out uint pType);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetSize(out uint pSize);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetAddress(out ulong pAddress);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateBreakpoint([MarshalAs(UnmanagedType.Interface)] out ICorDebugValueBreakpoint ppBreakpoint);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetClass([MarshalAs(UnmanagedType.Interface)] out ICorDebugClass ppClass);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetFieldValue([In, MarshalAs(UnmanagedType.Interface)] ICorDebugClass pClass, [In] uint fieldDef, [MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppValue);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetVirtualMethod([In] uint memberRef, [MarshalAs(UnmanagedType.Interface)] out ICorDebugFunction ppFunction);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetContext([MarshalAs(UnmanagedType.Interface)] out ICorDebugContext ppContext);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsValueClass(out int pbIsValueClass);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetManagedCopy([MarshalAs(UnmanagedType.IUnknown)] out object ppObject);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetFromManagedCopy([In, MarshalAs(UnmanagedType.IUnknown)] object pObject);
|
|
}
|
|
|
|
[ComImport, Guid("49E4A320-4A9B-4ECA-B105-229FB7D5009F"), InterfaceType((short) 1)]
|
|
public interface ICorDebugObjectValue2
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetVirtualMethodAndType([In] uint memberRef, [MarshalAs(UnmanagedType.Interface)] out ICorDebugFunction ppFunction, [MarshalAs(UnmanagedType.Interface)] out ICorDebugType ppType);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), ComConversionLoss, Guid("3D6F5F64-7538-11D3-8D5B-00104B35E7EF")]
|
|
public interface ICorDebugProcess : ICorDebugController
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Stop([In] uint dwTimeoutIgnored);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Continue([In] int fIsOutOfBand);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsRunning(out int pbRunning);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __HasQueuedCallbacks([In, MarshalAs(UnmanagedType.Interface)] ICorDebugThread pThread, out int pbQueued);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __EnumerateThreads([MarshalAs(UnmanagedType.Interface)] out ICorDebugThreadEnum ppThreads);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetAllThreadsDebugState([In] CorDebugThreadState state, [In, MarshalAs(UnmanagedType.Interface)] ICorDebugThread pExceptThisThread);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Detach();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Terminate([In] uint exitCode);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CanCommitChanges([In] uint cSnapshots, [In, MarshalAs(UnmanagedType.Interface)] ref ICorDebugEditAndContinueSnapshot pSnapshots, [MarshalAs(UnmanagedType.Interface)] out ICorDebugErrorInfoEnum pError);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CommitChanges([In] uint cSnapshots, [In, MarshalAs(UnmanagedType.Interface)] ref ICorDebugEditAndContinueSnapshot pSnapshots, [MarshalAs(UnmanagedType.Interface)] out ICorDebugErrorInfoEnum pError);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetID(out uint pdwProcessId);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetHandle([ComAliasName("Debugger.Interop.CorDebug.long")] out uint phProcessHandle);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetThread([In] uint dwThreadId, [MarshalAs(UnmanagedType.Interface)] out ICorDebugThread ppThread);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __EnumerateObjects([MarshalAs(UnmanagedType.Interface)] out ICorDebugObjectEnum ppObjects);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsTransitionStub([In] ulong address, out int pbTransitionStub);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsOSSuspended([In] uint threadID, out int pbSuspended);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetThreadContext([In] uint threadID, [In] uint contextSize, [In, Out] IntPtr context);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetThreadContext([In] uint threadID, [In] uint contextSize, [In] IntPtr context);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __ReadMemory([In] ulong address, [In] uint size, [Out] IntPtr buffer, [ComAliasName("Debugger.Interop.CorDebug.ULONG_PTR")] out uint read);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __WriteMemory([In] ulong address, [In] uint size, [In] IntPtr buffer, [ComAliasName("Debugger.Interop.CorDebug.ULONG_PTR")] out uint written);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __ClearCurrentException([In] uint threadID);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __EnableLogMessages([In] int fOnOff);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __ModifyLogSwitch([In] IntPtr pLogSwitchName, [In] int lLevel);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __EnumerateAppDomains([MarshalAs(UnmanagedType.Interface)] out ICorDebugAppDomainEnum ppAppDomains);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetObject([MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppObject);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __ThreadForFiberCookie([In] uint fiberCookie, [MarshalAs(UnmanagedType.Interface)] out ICorDebugThread ppThread);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetHelperThreadID(out uint pThreadID);
|
|
}
|
|
|
|
[ComImport, ComConversionLoss, Guid("AD1B3588-0EF0-4744-A496-AA09A9F80371"), InterfaceType((short) 1)]
|
|
public interface ICorDebugProcess2
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetThreadForTaskID([In] ulong taskid, [MarshalAs(UnmanagedType.Interface)] out ICorDebugThread2 ppThread);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetVersion(out _COR_VERSION version);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetUnmanagedBreakpoint([In] ulong address, [In] uint bufsize, [Out] IntPtr buffer, out uint bufLen);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __ClearUnmanagedBreakpoint([In] ulong address);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetDesiredNGENCompilerFlags([In] uint pdwFlags);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetDesiredNGENCompilerFlags(out uint pdwFlags);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetReferenceValueFromGCHandle([In, ComAliasName("Debugger.Interop.CorDebug.UINT_PTR")] uint handle, [MarshalAs(UnmanagedType.Interface)] out ICorDebugReferenceValue pOutValue);
|
|
}
|
|
|
|
[ComImport, Guid("CC7BCB05-8A68-11D2-983C-0000F808342D"), InterfaceType((short) 1), ComConversionLoss]
|
|
public interface ICorDebugProcessEnum : ICorDebugEnum
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Skip([In] uint celt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Reset();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Clone([MarshalAs(UnmanagedType.Interface)] out ICorDebugEnum ppEnum);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCount(out uint pcelt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Next([In] uint celt, [Out] IntPtr processes, out uint pceltFetched);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("CC7BCAF9-8A68-11D2-983C-0000F808342D")]
|
|
public interface ICorDebugReferenceValue : ICorDebugValue
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetType(out uint pType);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetSize(out uint pSize);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetAddress(out ulong pAddress);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateBreakpoint([MarshalAs(UnmanagedType.Interface)] out ICorDebugValueBreakpoint ppBreakpoint);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsNull(out int pbNull);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetValue(out ulong pValue);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetValue([In] ulong value);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Dereference([MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppValue);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __DereferenceStrong([MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppValue);
|
|
}
|
|
|
|
[ComImport, Guid("CC7BCB0B-8A68-11D2-983C-0000F808342D"), ComConversionLoss, InterfaceType((short) 1)]
|
|
public interface ICorDebugRegisterSet
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetRegistersAvailable(out ulong pAvailable);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetRegisters([In] ulong mask, [In] uint regCount, [Out] IntPtr regBuffer);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetRegisters([In] ulong mask, [In] uint regCount, [In] ref ulong regBuffer);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetThreadContext([In] uint contextSize, [In, Out] IntPtr context);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetThreadContext([In] uint contextSize, [In] IntPtr context);
|
|
}
|
|
|
|
[ComImport, Guid("CC7BCAEC-8A68-11D2-983C-0000F808342D"), InterfaceType((short) 1)]
|
|
public interface ICorDebugStepper
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsActive(out int pbActive);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Deactivate();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetInterceptMask([In] CorDebugIntercept mask);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetUnmappedStopMask([In] CorDebugUnmappedStop mask);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Step([In] int bStepIn);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __StepRange([In] int bStepIn, [In] IntPtr ranges, [In] uint cRangeCount);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __StepOut();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetRangeIL([In] int bIL);
|
|
}
|
|
|
|
[ComImport, Guid("C5B6E9C3-E7D1-4A8E-873B-7F047F0706F7"), InterfaceType((short) 1)]
|
|
public interface ICorDebugStepper2
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetJMC([In] int fIsJMCStepper);
|
|
}
|
|
|
|
[ComImport, Guid("CC7BCB04-8A68-11D2-983C-0000F808342D"), InterfaceType((short) 1), ComConversionLoss]
|
|
public interface ICorDebugStepperEnum : ICorDebugEnum
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Skip([In] uint celt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Reset();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Clone([MarshalAs(UnmanagedType.Interface)] out ICorDebugEnum ppEnum);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCount(out uint pcelt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Next([In] uint celt, [Out] IntPtr steppers, out uint pceltFetched);
|
|
}
|
|
|
|
[ComImport, Guid("CC7BCAFD-8A68-11D2-983C-0000F808342D"), InterfaceType((short) 1), ComConversionLoss]
|
|
public interface ICorDebugStringValue : ICorDebugHeapValue
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetType(out uint pType);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetSize(out uint pSize);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetAddress(out ulong pAddress);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateBreakpoint([MarshalAs(UnmanagedType.Interface)] out ICorDebugValueBreakpoint ppBreakpoint);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsValid(out int pbValid);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateRelocBreakpoint([MarshalAs(UnmanagedType.Interface)] out ICorDebugValueBreakpoint ppBreakpoint);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetLength(out uint pcchString);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetString([In] uint cchString, out uint pcchString, [Out] IntPtr szString);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("938C6D66-7FB6-4F69-B389-425B8987329B")]
|
|
public interface ICorDebugThread
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetProcess([MarshalAs(UnmanagedType.Interface)] out ICorDebugProcess ppProcess);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetID(out uint pdwThreadId);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetHandle([ComAliasName("Debugger.Interop.CorDebug.long")] out uint phThreadHandle);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetAppDomain([MarshalAs(UnmanagedType.Interface)] out ICorDebugAppDomain ppAppDomain);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __SetDebugState([In] CorDebugThreadState state);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetDebugState(out CorDebugThreadState pState);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetUserState(out CorDebugUserState pState);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCurrentException([MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppExceptionObject);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __ClearCurrentException();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateStepper([MarshalAs(UnmanagedType.Interface)] out ICorDebugStepper ppStepper);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __EnumerateChains([MarshalAs(UnmanagedType.Interface)] out ICorDebugChainEnum ppChains);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetActiveChain([MarshalAs(UnmanagedType.Interface)] out ICorDebugChain ppChain);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetActiveFrame([MarshalAs(UnmanagedType.Interface)] out ICorDebugFrame ppFrame);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetRegisterSet([MarshalAs(UnmanagedType.Interface)] out ICorDebugRegisterSet ppRegisters);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateEval([MarshalAs(UnmanagedType.Interface)] out ICorDebugEval ppEval);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetObject([MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppObject);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("2BD956D9-7B07-4BEF-8A98-12AA862417C5"), ComConversionLoss]
|
|
public interface ICorDebugThread2
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetActiveFunctions([In] uint cFunctions, out uint pcFunctions, [In, Out] IntPtr pFunctions);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetConnectionID(out uint pdwConnectionId);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetTaskID(out ulong pTaskId);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetVolatileOSThreadID(out uint pdwTid);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __InterceptCurrentException([In, MarshalAs(UnmanagedType.Interface)] ICorDebugFrame pFrame);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), ComConversionLoss, Guid("CC7BCB06-8A68-11D2-983C-0000F808342D")]
|
|
public interface ICorDebugThreadEnum : ICorDebugEnum
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Skip([In] uint celt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Reset();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Clone([MarshalAs(UnmanagedType.Interface)] out ICorDebugEnum ppEnum);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCount(out uint pcelt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Next([In] uint celt, [Out, MarshalAs(UnmanagedType.LPArray)] ICorDebugThread[] threads, out uint pceltFetched);
|
|
}
|
|
|
|
[ComImport, Guid("D613F0BB-ACE1-4C19-BD72-E4C08D5DA7F5"), InterfaceType((short) 1)]
|
|
public interface ICorDebugType
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetType(out uint ty);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetClass([MarshalAs(UnmanagedType.Interface)] out ICorDebugClass ppClass);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __EnumerateTypeParameters([MarshalAs(UnmanagedType.Interface)] out ICorDebugTypeEnum ppTyParEnum);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetFirstTypeParameter([MarshalAs(UnmanagedType.Interface)] out ICorDebugType value);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetBase([MarshalAs(UnmanagedType.Interface)] out ICorDebugType pBase);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetStaticFieldValue([In] uint fieldDef, [In, MarshalAs(UnmanagedType.Interface)] ICorDebugFrame pFrame, [MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppValue);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetRank(out uint pnRank);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("10F27499-9DF2-43CE-8333-A321D7C99CB4"), ComConversionLoss]
|
|
public interface ICorDebugTypeEnum : ICorDebugEnum
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Skip([In] uint celt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Reset();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Clone([MarshalAs(UnmanagedType.Interface)] out ICorDebugEnum ppEnum);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCount(out uint pcelt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Next([In] uint celt, [Out, MarshalAs(UnmanagedType.LPArray)] ICorDebugType[] values, out uint pceltFetched);
|
|
}
|
|
|
|
[ComImport, Guid("5263E909-8CB5-11D3-BD2F-0000F80849BD"), InterfaceType((short) 1)]
|
|
public interface ICorDebugUnmanagedCallback
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __DebugEvent([In, ComAliasName("Debugger.Interop.CorDebug.ULONG_PTR")] uint pDebugEvent, [In] int fOutOfBand);
|
|
}
|
|
|
|
[ComImport, Guid("CC7BCAF7-8A68-11D2-983C-0000F808342D"), InterfaceType((short) 1)]
|
|
public interface ICorDebugValue
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetType(out uint pType);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetSize(out uint pSize);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetAddress(out ulong pAddress);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __CreateBreakpoint([MarshalAs(UnmanagedType.Interface)] out ICorDebugValueBreakpoint ppBreakpoint);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("5E0B54E7-D88A-4626-9420-A691E0A78B49")]
|
|
public interface ICorDebugValue2
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetExactType([MarshalAs(UnmanagedType.Interface)] out ICorDebugType ppType);
|
|
}
|
|
|
|
[ComImport, Guid("CC7BCAEB-8A68-11D2-983C-0000F808342D"), InterfaceType((short) 1)]
|
|
public interface ICorDebugValueBreakpoint : ICorDebugBreakpoint
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Activate([In] int bActive);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __IsActive(out int pbActive);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetValue([MarshalAs(UnmanagedType.Interface)] out ICorDebugValue ppValue);
|
|
}
|
|
|
|
[ComImport, InterfaceType((short) 1), Guid("CC7BCB0A-8A68-11D2-983C-0000F808342D"), ComConversionLoss]
|
|
public interface ICorDebugValueEnum : ICorDebugEnum
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Skip([In] uint celt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Reset();
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Clone([MarshalAs(UnmanagedType.Interface)] out ICorDebugEnum ppEnum);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __GetCount(out uint pcelt);
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
|
|
void __Next([In] uint celt, [Out] IntPtr values, out uint pceltFetched);
|
|
}
|
|
}
|
|
|
|
#pragma warning restore 108, 1591
|