mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-11 02:24:36 +01:00
fix: dodgy RTSS workaround
This commit is contained in:
parent
dbdd584d89
commit
2f88a4e0e6
2 changed files with 62 additions and 0 deletions
|
|
@ -61,5 +61,30 @@ namespace Dalamud
|
|||
[DllImport("user32.dll")]
|
||||
[return: MarshalAs(UnmanagedType.Bool)]
|
||||
public static extern bool FlashWindowEx(ref FLASHWINFO pwfi);
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError = true)]
|
||||
[return: MarshalAs(UnmanagedType.Bool)]
|
||||
public static extern bool FreeLibrary(IntPtr hModule);
|
||||
|
||||
[DllImport("kernel32.dll", CharSet = CharSet.Auto)]
|
||||
public static extern IntPtr GetModuleHandle(string lpModuleName);
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError = true)]
|
||||
[PreserveSig]
|
||||
public static extern uint GetModuleFileName
|
||||
(
|
||||
[In]
|
||||
IntPtr hModule,
|
||||
|
||||
[Out]
|
||||
StringBuilder lpFilename,
|
||||
|
||||
[In]
|
||||
[MarshalAs(UnmanagedType.U4)]
|
||||
int nSize
|
||||
);
|
||||
|
||||
[DllImport("kernel32", SetLastError = true, CharSet = CharSet.Ansi)]
|
||||
public static extern IntPtr LoadLibrary([MarshalAs(UnmanagedType.LPStr)]string lpFileName);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue