feat check Is 32bit system and check VBS and GetWindowsVerison
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user