1
0
mirror of https://github.com/soarqin/DSP_Mods_TO.git synced 2026-02-04 22:22:22 +08:00

CompressSave 1.3.7

This commit is contained in:
2024-12-01 15:32:20 +08:00
parent f832fbf0d6
commit 3cc1dfa750
10 changed files with 249 additions and 315 deletions

View File

@@ -0,0 +1,18 @@
using System;
using System.Runtime.InteropServices;
namespace CompressSave.Wrapper;
public static class WinApi
{
// LoadLibrary, GetProcAddress, FreeLibrary
[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
public static extern IntPtr LoadLibrary(string dllToLoad);
[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Ansi)]
public static extern IntPtr GetProcAddress(IntPtr hModule, string procedureName);
[DllImport("kernel32.dll", SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool FreeLibrary(IntPtr hModule);
}