mirror of
https://github.com/0xRoam/LoadReload
synced 2026-06-16 04:43:20 +00:00
14 lines
325 B
C++
14 lines
325 B
C++
#include "guardrails.h"
|
|
#include <windows.h>
|
|
|
|
namespace Guardrails {
|
|
// Check Number of CPU Cores
|
|
bool CheckCpuCores(unsigned int minCores) {
|
|
SYSTEM_INFO sysInfo;
|
|
GetSystemInfo(&sysInfo);
|
|
if (sysInfo.dwNumberOfProcessors <= minCores) {
|
|
return true; // Insufficient cores
|
|
}
|
|
return false; // Sufficient cores
|
|
}
|
|
} |