1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2026-09-19 18:01:25 +03:00

Cedar, Mayaqua: Set minimum Windows version to Vista

This commit is contained in:
Davide Beatrici
2021-04-03 02:25:19 +02:00
parent a79f91161f
commit 5cab279a8c
31 changed files with 773 additions and 4535 deletions
+4 -17
View File
@@ -9,8 +9,8 @@
#ifdef WIN32
#define _WIN32_WINNT 0x0502
#define WINVER 0x0502
#define _WIN32_WINNT 0x0600
#define WINVER 0x0600
#include <winsock2.h>
#include <windows.h>
#include <Dbghelp.h>
@@ -501,7 +501,7 @@ DIRLIST *Win32EnumDirExW(wchar_t *dirname, COMPARE *compare)
CombinePathW(fullpath, sizeof(fullpath), dirname2, f->FileNameW);
// Attempt to get the file information
if (MsIsNt())
if (true)
{
HANDLE h = CreateFileW(fullpath, 0,
FILE_SHARE_DELETE | FILE_SHARE_READ | FILE_SHARE_WRITE,
@@ -913,7 +913,7 @@ void Win32GetOsInfo(OS_INFO *info)
info->OsType = Win32GetOsType();
info->OsServicePack = os.wServicePackMajor;
if (OS_IS_WINDOWS_NT(info->OsType))
if (true)
{
char *s;
char *keyname = "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion";
@@ -951,19 +951,6 @@ void Win32GetOsInfo(OS_INFO *info)
}
info->KernelVersion = CopyStr(tmp);
}
else
{
OSVERSIONINFO os;
Zero(&os, sizeof(os));
os.dwOSVersionInfoSize = sizeof(os);
GetVersionEx(&os);
Format(tmp, sizeof(tmp), "Build %u %s", LOWORD(os.dwBuildNumber), os.szCSDVersion);
Trim(tmp);
info->OsVersion = CopyStr(tmp);
info->OsSystemName = CopyStr("Windows");
info->KernelName = CopyStr("Windows 9x Kernel");
info->KernelVersion = CopyStr(tmp);
}
info->OsProductName = CopyStr(OsTypeToStr(info->OsType));
info->OsVendorName = CopyStr("Microsoft Corporation");