mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.1 KiB
28 lines
1.1 KiB
// 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 1591 |
|
|
|
using System; |
|
using System.Runtime.InteropServices; |
|
using System.Text; |
|
|
|
namespace Debugger.Interop |
|
{ |
|
public static class NativeMethods |
|
{ |
|
[DllImport("kernel32.dll")] |
|
public static extern bool CloseHandle(IntPtr handle); |
|
|
|
[DllImport("mscoree.dll", CharSet=CharSet.Unicode, PreserveSig=false)] |
|
public static extern Debugger.Interop.CorDebug.ICorDebug CreateDebuggingInterfaceFromVersion(int debuggerVersion, string debuggeeVersion); |
|
|
|
[DllImport("mscoree.dll", CharSet=CharSet.Unicode)] |
|
public static extern int GetCORVersion([Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder szName, Int32 cchBuffer, out Int32 dwLength); |
|
|
|
[DllImport("mscoree.dll", CharSet=CharSet.Unicode)] |
|
public static extern int GetRequestedRuntimeVersion(string exeFilename, [Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder pVersion, Int32 cchBuffer, out Int32 dwLength); |
|
} |
|
} |
|
|
|
#pragma warning restore 1591
|
|
|