From a5555b4ee1bb14da2072e51b33f823d254488cfe Mon Sep 17 00:00:00 2001 From: Mina Brown Date: Tue, 12 Aug 2025 09:16:34 -0400 Subject: [PATCH] Guarantee Vista support Define NT version headers so that Windows Vista support should reasonably be guaranteed, since we will not be using any newer APIs. --- WinPowerDMS/WinPowerDMS.c | 4 ++++ WinPowerDMS/WinPowerDMS.vcxproj | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/WinPowerDMS/WinPowerDMS.c b/WinPowerDMS/WinPowerDMS.c index 8bbb4aa..abb2d36 100644 --- a/WinPowerDMS/WinPowerDMS.c +++ b/WinPowerDMS/WinPowerDMS.c @@ -1,3 +1,7 @@ +#define WIN32_LEAN_AND_MEAN +#define _WIN32_WINNT _WIN32_WINNT_VISTA +#define NTDDI_VERSION NTDDI_VISTA + #include #include #include diff --git a/WinPowerDMS/WinPowerDMS.vcxproj b/WinPowerDMS/WinPowerDMS.vcxproj index cce3005..24dc5a4 100644 --- a/WinPowerDMS/WinPowerDMS.vcxproj +++ b/WinPowerDMS/WinPowerDMS.vcxproj @@ -118,7 +118,7 @@ ComCtl32.lib;%(AdditionalDependencies) - PerMonitorHighDPIAware + true @@ -136,7 +136,7 @@ ComCtl32.lib;%(AdditionalDependencies) - PerMonitorHighDPIAware + true