From 9ce44fa048793de5e14d1e7af98e8b5ca148d0f3 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Thu, 26 May 2022 03:07:28 +1000 Subject: osd: Cleaned up Windows API usage a little. * Bumped target windows version to 6.0.0 (Vista). * Use WRL COM pointers to manage some COM-like objects. * Cleaned up logging in DirectSound module. * Cleaned up includes in Windows input modules. * Switched to Common Item Dialogs in Windows debugger. * Replaced disabled code that never really worked with a TODO comment. --- scripts/src/osd/windows.lua | 5 +++-- scripts/src/osd/windows_cfg.lua | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'scripts/src') diff --git a/scripts/src/osd/windows.lua b/scripts/src/osd/windows.lua index 2d5ca91cca6..2ced36718aa 100644 --- a/scripts/src/osd/windows.lua +++ b/scripts/src/osd/windows.lua @@ -29,12 +29,13 @@ function maintargetosdoptions(_target,_subtarget) end links { - "dinput8", "comctl32", "comdlg32", - "psapi", + "dinput8", "ole32", + "psapi", "shlwapi", + "uuid", } end diff --git a/scripts/src/osd/windows_cfg.lua b/scripts/src/osd/windows_cfg.lua index 8faf636e0bc..01d441c2214 100644 --- a/scripts/src/osd/windows_cfg.lua +++ b/scripts/src/osd/windows_cfg.lua @@ -33,7 +33,8 @@ if _OPTIONS["MODERN_WIN_API"]=="1" then } else defines { - "_WIN32_WINNT=0x0501", + "_WIN32_WINNT=0x0600", + "NTDDI_VERSION=0x06000000", } end -- cgit v1.2.3-70-g09d2