mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-04-05 11:25:20 +08:00
17 lines
588 B
C#
17 lines
588 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace MicaSetup.Natives;
|
|
|
|
public static class Gdi32
|
|
{
|
|
[DllImport(Lib.Gdi32, SetLastError = false, ExactSpelling = true)]
|
|
public static extern int GetDeviceCaps(nint hdc, DeviceCap nIndex);
|
|
|
|
[DllImport(Lib.Gdi32, SetLastError = false, CharSet = CharSet.Auto)]
|
|
public static extern nint CreateDC([Optional] string pwszDriver, [Optional] string pwszDevice, [Optional] string pszPort, object pdm);
|
|
|
|
[DllImport(Lib.Gdi32)]
|
|
[return: MarshalAs(UnmanagedType.Bool)]
|
|
public static extern bool DeleteObject(nint hObject);
|
|
}
|