feat check Is 32bit system and check VBS and GetWindowsVerison

This commit is contained in:
2026-10-08 09:48:57 +08:00
parent 75d9b25362
commit 9de0deaf1f
2 changed files with 389 additions and 1 deletions
+21
View File
@@ -3,6 +3,18 @@
#define UTILS_H
#include "Base.h"
struct WINDOWS_VERSION
{
DWORD Major;
DWORD Minor;
DWORD Build;
DWORD UBR;
const char* Name;
};
namespace utils
{
BYTE* ReadBinaryFile(const char* filePath, DWORD* outSize);
@@ -22,6 +34,15 @@ namespace utils
char* ProcessName,
DWORD ProcessNameSize
);
//检测是否是32位操作系统
bool Is32BitOperatingSystem();
//检测是否开启VBS和HVCI
BOOL CheckVBS(BOOL* vbsRunning, BOOL* hvciRunning);
//获取操作系统的版本和子版本号
bool GetWindowsVersion(WINDOWS_VERSION* Version);
}
#endif // !UTILS_h