From 7cc34f19c0a5251c272241b1dacd57aee953d3cb Mon Sep 17 00:00:00 2001 From: Azuk 443 Date: Tue, 23 May 2023 14:34:09 +0800 Subject: [PATCH] update targetver.h to a modern version --- PyWeasel/targetver.h | 17 ++++++++--------- RimeWithWeasel/targetver.h | 20 ++++++++++---------- WeaselDeployer/targetver.h | 20 ++++++++++---------- WeaselIME/targetver.h | 24 ++++++------------------ WeaselIPC/targetver.h | 20 ++++++++++---------- WeaselIPCServer/targetver.h | 20 ++++++++++---------- WeaselSetup/targetver.h | 20 ++++++++++---------- WeaselTSF/targetver.h | 24 ++++++------------------ WeaselUI/targetver.h | 21 ++++++++++----------- test/TestPyWeasel/targetver.h | 17 ++++++++--------- test/TestResponseParser/targetver.h | 20 ++++++++++---------- test/TestWeaselIPC/targetver.h | 20 ++++++++++---------- 12 files changed, 108 insertions(+), 135 deletions(-) diff --git a/PyWeasel/targetver.h b/PyWeasel/targetver.h index 6823fa6ae..5dec11d26 100644 --- a/PyWeasel/targetver.h +++ b/PyWeasel/targetver.h @@ -1,13 +1,12 @@ #pragma once -// The following macros define the minimum required platform. The minimum required platform -// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run -// your application. The macros work by enabling all features available on platform versions up to and -// including the version specified. +// Including SDKDDKVer.h defines the highest available Windows platform. -// Modify the following defines if you have to target a platform prior to the ones specified below. -// Refer to MSDN for the latest info on corresponding values for different platforms. -#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows Vista. -#define _WIN32_WINNT 0x0603 // Change this to the appropriate value to target other versions of Windows. -#endif +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. +#include + +#define _WIN32_WINNT _WIN32_WINNT_WINBLUE // Specifies that the minimum required platform is Windows 8.1. + +#include diff --git a/RimeWithWeasel/targetver.h b/RimeWithWeasel/targetver.h index 47efa6f14..5dec11d26 100644 --- a/RimeWithWeasel/targetver.h +++ b/RimeWithWeasel/targetver.h @@ -1,12 +1,12 @@ #pragma once -// The following macros define the minimum required platform. The minimum required platform -// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run -// your application. The macros work by enabling all features available on platform versions up to and -// including the version specified. - -// Modify the following defines if you have to target a platform prior to the ones specified below. -// Refer to MSDN for the latest info on corresponding values for different platforms. -#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows XP. -#define _WIN32_WINNT 0x0603 // Change this to the appropriate value to target other versions of Windows. -#endif +// Including SDKDDKVer.h defines the highest available Windows platform. + +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. + +#include + +#define _WIN32_WINNT _WIN32_WINNT_WINBLUE // Specifies that the minimum required platform is Windows 8.1. + +#include diff --git a/WeaselDeployer/targetver.h b/WeaselDeployer/targetver.h index 47efa6f14..5dec11d26 100644 --- a/WeaselDeployer/targetver.h +++ b/WeaselDeployer/targetver.h @@ -1,12 +1,12 @@ #pragma once -// The following macros define the minimum required platform. The minimum required platform -// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run -// your application. The macros work by enabling all features available on platform versions up to and -// including the version specified. - -// Modify the following defines if you have to target a platform prior to the ones specified below. -// Refer to MSDN for the latest info on corresponding values for different platforms. -#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows XP. -#define _WIN32_WINNT 0x0603 // Change this to the appropriate value to target other versions of Windows. -#endif +// Including SDKDDKVer.h defines the highest available Windows platform. + +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. + +#include + +#define _WIN32_WINNT _WIN32_WINNT_WINBLUE // Specifies that the minimum required platform is Windows 8.1. + +#include diff --git a/WeaselIME/targetver.h b/WeaselIME/targetver.h index 972ad6073..5dec11d26 100644 --- a/WeaselIME/targetver.h +++ b/WeaselIME/targetver.h @@ -1,24 +1,12 @@ #pragma once -// The following macros define the minimum required platform. The minimum required platform -// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run -// your application. The macros work by enabling all features available on platform versions up to and -// including the version specified. +// Including SDKDDKVer.h defines the highest available Windows platform. -// Modify the following defines if you have to target a platform prior to the ones specified below. -// Refer to MSDN for the latest info on corresponding values for different platforms. -#ifndef WINVER // Specifies that the minimum required platform is Windows XP. -#define WINVER 0x0603 // Change this to the appropriate value to target other versions of Windows. -#endif +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. -#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows XP. -#define _WIN32_WINNT 0x0603 // Change this to the appropriate value to target other versions of Windows. -#endif +#include -#ifndef _WIN32_WINDOWS // Specifies that the minimum required platform is Windows 98. -#define _WIN32_WINDOWS 0x0603 // Change this to the appropriate value to target Windows Me or later. -#endif +#define _WIN32_WINNT _WIN32_WINNT_WINBLUE // Specifies that the minimum required platform is Windows 8.1. -#ifndef _WIN32_IE // Specifies that the minimum required platform is Internet Explorer 4.0. -#define _WIN32_IE 0x0600 // Change this to the appropriate value to target other versions of IE. -#endif +#include diff --git a/WeaselIPC/targetver.h b/WeaselIPC/targetver.h index 47efa6f14..5dec11d26 100644 --- a/WeaselIPC/targetver.h +++ b/WeaselIPC/targetver.h @@ -1,12 +1,12 @@ #pragma once -// The following macros define the minimum required platform. The minimum required platform -// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run -// your application. The macros work by enabling all features available on platform versions up to and -// including the version specified. - -// Modify the following defines if you have to target a platform prior to the ones specified below. -// Refer to MSDN for the latest info on corresponding values for different platforms. -#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows XP. -#define _WIN32_WINNT 0x0603 // Change this to the appropriate value to target other versions of Windows. -#endif +// Including SDKDDKVer.h defines the highest available Windows platform. + +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. + +#include + +#define _WIN32_WINNT _WIN32_WINNT_WINBLUE // Specifies that the minimum required platform is Windows 8.1. + +#include diff --git a/WeaselIPCServer/targetver.h b/WeaselIPCServer/targetver.h index 4b5e5fc81..5dec11d26 100644 --- a/WeaselIPCServer/targetver.h +++ b/WeaselIPCServer/targetver.h @@ -1,12 +1,12 @@ #pragma once -// The following macros define the minimum required platform. The minimum required platform -// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run -// your application. The macros work by enabling all features available on platform versions up to and -// including the version specified. - -// Modify the following defines if you have to target a platform prior to the ones specified below. -// Refer to MSDN for the latest info on corresponding values for different platforms. -#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows Vista. -#define _WIN32_WINNT 0x0603 // Change this to the appropriate value to target other versions of Windows. -#endif +// Including SDKDDKVer.h defines the highest available Windows platform. + +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. + +#include + +#define _WIN32_WINNT _WIN32_WINNT_WINBLUE // Specifies that the minimum required platform is Windows 8.1. + +#include diff --git a/WeaselSetup/targetver.h b/WeaselSetup/targetver.h index 47efa6f14..5dec11d26 100644 --- a/WeaselSetup/targetver.h +++ b/WeaselSetup/targetver.h @@ -1,12 +1,12 @@ #pragma once -// The following macros define the minimum required platform. The minimum required platform -// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run -// your application. The macros work by enabling all features available on platform versions up to and -// including the version specified. - -// Modify the following defines if you have to target a platform prior to the ones specified below. -// Refer to MSDN for the latest info on corresponding values for different platforms. -#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows XP. -#define _WIN32_WINNT 0x0603 // Change this to the appropriate value to target other versions of Windows. -#endif +// Including SDKDDKVer.h defines the highest available Windows platform. + +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. + +#include + +#define _WIN32_WINNT _WIN32_WINNT_WINBLUE // Specifies that the minimum required platform is Windows 8.1. + +#include diff --git a/WeaselTSF/targetver.h b/WeaselTSF/targetver.h index 972ad6073..5dec11d26 100644 --- a/WeaselTSF/targetver.h +++ b/WeaselTSF/targetver.h @@ -1,24 +1,12 @@ #pragma once -// The following macros define the minimum required platform. The minimum required platform -// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run -// your application. The macros work by enabling all features available on platform versions up to and -// including the version specified. +// Including SDKDDKVer.h defines the highest available Windows platform. -// Modify the following defines if you have to target a platform prior to the ones specified below. -// Refer to MSDN for the latest info on corresponding values for different platforms. -#ifndef WINVER // Specifies that the minimum required platform is Windows XP. -#define WINVER 0x0603 // Change this to the appropriate value to target other versions of Windows. -#endif +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. -#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows XP. -#define _WIN32_WINNT 0x0603 // Change this to the appropriate value to target other versions of Windows. -#endif +#include -#ifndef _WIN32_WINDOWS // Specifies that the minimum required platform is Windows 98. -#define _WIN32_WINDOWS 0x0603 // Change this to the appropriate value to target Windows Me or later. -#endif +#define _WIN32_WINNT _WIN32_WINNT_WINBLUE // Specifies that the minimum required platform is Windows 8.1. -#ifndef _WIN32_IE // Specifies that the minimum required platform is Internet Explorer 4.0. -#define _WIN32_IE 0x0600 // Change this to the appropriate value to target other versions of IE. -#endif +#include diff --git a/WeaselUI/targetver.h b/WeaselUI/targetver.h index 30c6c595c..5dec11d26 100644 --- a/WeaselUI/targetver.h +++ b/WeaselUI/targetver.h @@ -1,13 +1,12 @@ #pragma once -// The following macros define the minimum required platform. The minimum required platform -// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run -// your application. The macros work by enabling all features available on platform versions up to and -// including the version specified. - -// Modify the following defines if you have to target a platform prior to the ones specified below. -// Refer to MSDN for the latest info on corresponding values for different platforms. -#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows XP. -#define _WIN32_WINNT 0x0603 // Change this to the appropriate value to target other versions of Windows. -#define NTDDI_VERSION NTDDI_WINBLUE -#endif +// Including SDKDDKVer.h defines the highest available Windows platform. + +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. + +#include + +#define _WIN32_WINNT _WIN32_WINNT_WINBLUE // Specifies that the minimum required platform is Windows 8.1. + +#include diff --git a/test/TestPyWeasel/targetver.h b/test/TestPyWeasel/targetver.h index 6823fa6ae..5dec11d26 100644 --- a/test/TestPyWeasel/targetver.h +++ b/test/TestPyWeasel/targetver.h @@ -1,13 +1,12 @@ #pragma once -// The following macros define the minimum required platform. The minimum required platform -// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run -// your application. The macros work by enabling all features available on platform versions up to and -// including the version specified. +// Including SDKDDKVer.h defines the highest available Windows platform. -// Modify the following defines if you have to target a platform prior to the ones specified below. -// Refer to MSDN for the latest info on corresponding values for different platforms. -#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows Vista. -#define _WIN32_WINNT 0x0603 // Change this to the appropriate value to target other versions of Windows. -#endif +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. +#include + +#define _WIN32_WINNT _WIN32_WINNT_WINBLUE // Specifies that the minimum required platform is Windows 8.1. + +#include diff --git a/test/TestResponseParser/targetver.h b/test/TestResponseParser/targetver.h index 47efa6f14..5dec11d26 100644 --- a/test/TestResponseParser/targetver.h +++ b/test/TestResponseParser/targetver.h @@ -1,12 +1,12 @@ #pragma once -// The following macros define the minimum required platform. The minimum required platform -// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run -// your application. The macros work by enabling all features available on platform versions up to and -// including the version specified. - -// Modify the following defines if you have to target a platform prior to the ones specified below. -// Refer to MSDN for the latest info on corresponding values for different platforms. -#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows XP. -#define _WIN32_WINNT 0x0603 // Change this to the appropriate value to target other versions of Windows. -#endif +// Including SDKDDKVer.h defines the highest available Windows platform. + +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. + +#include + +#define _WIN32_WINNT _WIN32_WINNT_WINBLUE // Specifies that the minimum required platform is Windows 8.1. + +#include diff --git a/test/TestWeaselIPC/targetver.h b/test/TestWeaselIPC/targetver.h index 47efa6f14..5dec11d26 100644 --- a/test/TestWeaselIPC/targetver.h +++ b/test/TestWeaselIPC/targetver.h @@ -1,12 +1,12 @@ #pragma once -// The following macros define the minimum required platform. The minimum required platform -// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run -// your application. The macros work by enabling all features available on platform versions up to and -// including the version specified. - -// Modify the following defines if you have to target a platform prior to the ones specified below. -// Refer to MSDN for the latest info on corresponding values for different platforms. -#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows XP. -#define _WIN32_WINNT 0x0603 // Change this to the appropriate value to target other versions of Windows. -#endif +// Including SDKDDKVer.h defines the highest available Windows platform. + +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. + +#include + +#define _WIN32_WINNT _WIN32_WINNT_WINBLUE // Specifies that the minimum required platform is Windows 8.1. + +#include