mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-03-30 10:19:51 +08:00
13 lines
365 B
C#
13 lines
365 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace MicaSetup.Natives;
|
|
|
|
public static class SHCore
|
|
{
|
|
[DllImport(Lib.SHCore)]
|
|
public static extern uint SetProcessDpiAwareness(PROCESS_DPI_AWARENESS awareness);
|
|
|
|
[DllImport(Lib.SHCore)]
|
|
public static extern int GetDpiForMonitor(nint hmonitor, MONITOR_DPI_TYPE dpiType, out uint dpiX, out uint dpiY);
|
|
}
|