migrate Pilz.Win32 & optimize Pilz & Pilz.IO
This commit is contained in:
15
Pilz.Win32/Native/Kernel32.cs
Normal file
15
Pilz.Win32/Native/Kernel32.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace Pilz.Win32.Native;
|
||||
|
||||
|
||||
public class Kernel32
|
||||
{
|
||||
|
||||
private const string LIB_KERNEL32 = "kernel32.dll";
|
||||
|
||||
[DllImport(LIB_KERNEL32)]
|
||||
public static extern uint GetModuleFileName(nint hModule, StringBuilder lpFilename, int nSize);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user