api: simplify driver selection by always including EV driver
When Windows 7-8.1 support is sunset, there will be no more EV driver deployment at all. Suggested-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
c928ad4de7
commit
779d0e0c38
@ -799,12 +799,10 @@ RtlGetNtVersionNumbers(_Out_opt_ DWORD *MajorVersion, _Out_opt_ DWORD *MinorVers
|
|||||||
static BOOL
|
static BOOL
|
||||||
HaveWHQL(void)
|
HaveWHQL(void)
|
||||||
{
|
{
|
||||||
#if defined(HAVE_EV) && defined(HAVE_WHQL)
|
#if defined(HAVE_WHQL)
|
||||||
DWORD MajorVersion;
|
DWORD MajorVersion;
|
||||||
RtlGetNtVersionNumbers(&MajorVersion, NULL, NULL);
|
RtlGetNtVersionNumbers(&MajorVersion, NULL, NULL);
|
||||||
return MajorVersion >= 10;
|
return MajorVersion >= 10;
|
||||||
#elif defined(HAVE_WHQL)
|
|
||||||
return TRUE;
|
|
||||||
#else
|
#else
|
||||||
return FALSE;
|
return FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
@ -143,14 +143,12 @@
|
|||||||
<ItemDefinitionGroup>
|
<ItemDefinitionGroup>
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<PreprocessorDefinitions>_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<PreprocessorDefinitions Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64' Or '$(Platform)'=='ARM' Or '$(Configuration)|$(Platform)'=='Debug|ARM64'">HAVE_EV;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<PreprocessorDefinitions Condition="Exists('$(OutDir)whql\')">HAVE_WHQL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions Condition="Exists('$(OutDir)whql\')">HAVE_WHQL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ResourceCompile>
|
<ResourceCompile>
|
||||||
<AdditionalIncludeDirectories>..\$(Configuration)\$(WintunPlatform);..\$(Configuration);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\$(Configuration)\$(WintunPlatform);..\$(Configuration);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<PreprocessorDefinitions Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64' Or '$(Platform)'=='ARM' Or '$(Configuration)|$(Platform)'=='Debug|ARM64'">HAVE_EV;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<PreprocessorDefinitions Condition="Exists('$(OutDir)whql\')">HAVE_WHQL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions Condition="Exists('$(OutDir)whql\')">HAVE_WHQL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<PreprocessorDefinitions Condition="'$(Platform)'=='Win32'">_M_IX86=600;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions Condition="'$(Platform)'=='Win32'">_M_IX86=600;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<PreprocessorDefinitions Condition="'$(Platform)'=='x64'">_M_AMD64=100;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions Condition="'$(Platform)'=='x64'">_M_AMD64=100;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
@ -6,11 +6,9 @@
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <ntverp.h>
|
#include <ntverp.h>
|
||||||
|
|
||||||
#ifdef HAVE_EV
|
|
||||||
wintun.cat RCDATA "wintun\\wintun.cat"
|
wintun.cat RCDATA "wintun\\wintun.cat"
|
||||||
wintun.inf RCDATA "wintun\\wintun.inf"
|
wintun.inf RCDATA "wintun\\wintun.inf"
|
||||||
wintun.sys RCDATA "wintun\\wintun.sys"
|
wintun.sys RCDATA "wintun\\wintun.sys"
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_WHQL
|
#ifdef HAVE_WHQL
|
||||||
wintun-whql.cat RCDATA "whql\\wintun.cat"
|
wintun-whql.cat RCDATA "whql\\wintun.cat"
|
||||||
|
Loading…
Reference in New Issue
Block a user