mirror of
https://github.com/JuniorDark/RustyHearts-Launcher.git
synced 2026-05-07 05:21:44 -04:00
Add project files.
This commit is contained in:
commit
5d3b4542bf
120 changed files with 36258 additions and 0 deletions
18
DynamicLib/NativeMethod.cs
Normal file
18
DynamicLib/NativeMethod.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public static class NativeMethod
|
||||
{
|
||||
[DllImport("kernel32.dll", EntryPoint = "LoadLibrary")]
|
||||
public static extern int LoadLibrary(
|
||||
[MarshalAs(UnmanagedType.LPStr)] string lpLibFileName);
|
||||
|
||||
[DllImport("kernel32.dll", EntryPoint = "GetProcAddress")]
|
||||
public static extern IntPtr GetProcAddress(int hModule,
|
||||
[MarshalAs(UnmanagedType.LPStr)] string lpProcName);
|
||||
|
||||
[DllImport("kernel32.dll", EntryPoint = "FreeLibrary")]
|
||||
public static extern bool FreeLibrary(int hModule);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue