From 0aca62b28d1b071031460269ccfd7ffdb7b3e6fd Mon Sep 17 00:00:00 2001
From: a1xd <68629610+a1xd@users.noreply.github.com>
Date: Wed, 2 Dec 2020 05:47:12 -0500
Subject: support win7 while cross-signing is still available
to be dropped by april 2021
---
common/rawaccel-version.h | 2 +-
driver/driver.vcxproj | 16 ++++++++++++----
installer/install.manifest | 6 ++++++
installer/installer.cpp | 7 +++----
4 files changed, 22 insertions(+), 9 deletions(-)
diff --git a/common/rawaccel-version.h b/common/rawaccel-version.h
index c9828a0..9470ca0 100644
--- a/common/rawaccel-version.h
+++ b/common/rawaccel-version.h
@@ -4,7 +4,7 @@
#define RA_VER_MINOR 3
#define RA_VER_PATCH 0
-#define RA_MIN_OS "Win10"
+#define RA_MIN_OS "Win7"
#define M_STR_HELPER(x) #x
#define M_STR(x) M_STR_HELPER(x)
diff --git a/driver/driver.vcxproj b/driver/driver.vcxproj
index d8cfd40..9034680 100644
--- a/driver/driver.vcxproj
+++ b/driver/driver.vcxproj
@@ -22,9 +22,9 @@
- Windows10
+ Windows7
False
- Universal
+ Desktop
KMDF
WindowsKernelModeDriver10.0
Driver
@@ -32,9 +32,9 @@
Spectre
- Windows10
+ Windows7
True
- Universal
+ Desktop
KMDF
WindowsKernelModeDriver10.0
Driver
@@ -55,10 +55,12 @@
rawaccel
false
+ http://timestamp.globalsign.com/scripts/timstamp.dll
rawaccel
false
+ http://timestamp.globalsign.com/scripts/timstamp.dll
@@ -96,6 +98,9 @@
$(SolutionDir)/common;$(UM_IncludePath);%(AdditionalIncludeDirectories)
+
+ sha256
+
@@ -119,6 +124,9 @@
%(AdditionalDependencies);$(KernelBufferOverflowLib);$(DDK_LIB_PATH)ntoskrnl.lib;$(DDK_LIB_PATH)hal.lib;$(DDK_LIB_PATH)wmilib.lib;$(KMDF_LIB_PATH)$(KMDF_VER_PATH)\WdfLdr.lib;$(KMDF_LIB_PATH)$(KMDF_VER_PATH)\WdfDriverEntry.lib;$(DDK_LIB_PATH)wdmsec.lib;$(DDK_LIB_PATH)libcntpr.lib
+
+ sha256
+
$(SolutionDir)/common;$(UM_IncludePath);%(AdditionalIncludeDirectories)
diff --git a/installer/install.manifest b/installer/install.manifest
index 0478246..f9b5ea3 100644
--- a/installer/install.manifest
+++ b/installer/install.manifest
@@ -4,6 +4,12 @@
+
+
+
+
+
+
diff --git a/installer/installer.cpp b/installer/installer.cpp
index 06f234e..916209f 100644
--- a/installer/installer.cpp
+++ b/installer/installer.cpp
@@ -1,9 +1,8 @@
-
-
#include
#include
#include
+
void add_service(const fs::path& target) {
SC_HANDLE schSCManager = OpenSCManager(
NULL, // local computer
@@ -43,8 +42,8 @@ void add_service(const fs::path& target) {
int main() {
try {
- if (!IsWindows10OrGreater()) {
- throw std::runtime_error("OS not supported, you need at least Windows 10");
+ if (!IsWindows7OrGreater()) {
+ throw std::runtime_error("OS not supported, you need at least Windows 7");
}
fs::path source = fs::path(L"driver") / DRIVER_FILE_NAME;
--
cgit v1.2.3