mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-04-02 10:45:22 +08:00
19 lines
412 B
C#
19 lines
412 B
C#
using MicaSetup.Helper;
|
|
|
|
namespace MicaSetup.Natives;
|
|
|
|
public static class DpiAwareHelper
|
|
{
|
|
public static bool SetProcessDpiAwareness()
|
|
{
|
|
if (OsVersionHelper.IsWindows81_OrGreater)
|
|
{
|
|
if (SHCore.SetProcessDpiAwareness(PROCESS_DPI_AWARENESS.PROCESS_PER_MONITOR_DPI_AWARE) == 0)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
}
|