bump version, target win10

This commit is contained in:
a1xd 2021-09-18 07:01:08 -04:00
parent e1397f3edb
commit 73f3d08f99
5 changed files with 11 additions and 9 deletions

View file

@ -1,10 +1,10 @@
#pragma once
#define RA_VER_MAJOR 1
#define RA_VER_MINOR 5
#define RA_VER_MINOR 6
#define RA_VER_PATCH 0
#define RA_OS "Win7+"
#define RA_OS "Win10+"
#define RA_M_STR_HELPER(x) #x
#define RA_M_STR(x) RA_M_STR_HELPER(x)
@ -30,7 +30,7 @@ namespace rawaccel {
inline constexpr version_t version = { RA_VER_MAJOR, RA_VER_MINOR, RA_VER_PATCH };
#ifndef _KERNEL_MODE
inline constexpr version_t min_driver_version = { 1, 5, 0 };
inline constexpr version_t min_driver_version = { 1, 6, 0 };
#endif
}

View file

@ -22,9 +22,10 @@
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<TargetVersion>Windows7</TargetVersion>
<TargetVersion>
</TargetVersion>
<UseDebugLibraries>False</UseDebugLibraries>
<DriverTargetPlatform>Desktop</DriverTargetPlatform>
<DriverTargetPlatform>Universal</DriverTargetPlatform>
<DriverType>KMDF</DriverType>
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
<ConfigurationType>Driver</ConfigurationType>
@ -33,9 +34,10 @@
<Driver_SpectreMitigation>Spectre</Driver_SpectreMitigation>
</PropertyGroup>
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<TargetVersion>Windows7</TargetVersion>
<TargetVersion>
</TargetVersion>
<UseDebugLibraries>True</UseDebugLibraries>
<DriverTargetPlatform>Desktop</DriverTargetPlatform>
<DriverTargetPlatform>Universal</DriverTargetPlatform>
<DriverType>KMDF</DriverType>
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
<ConfigurationType>Driver</ConfigurationType>

View file

@ -42,8 +42,8 @@ void add_service(const fs::path& target) {
int main() {
try {
if (!IsWindows7OrGreater()) {
throw std::runtime_error("OS not supported, you need at least Windows 7");
if (!IsWindows10OrGreater()) {
throw std::runtime_error("OS not supported, you need at least Windows 10");
}
fs::path source = fs::path(L"driver") / DRIVER_FILE_NAME;

Binary file not shown.

Binary file not shown.