Create processorsCount.cpp

This commit is contained in:
Lsec
2023-04-05 12:42:21 +03:00
committed by GitHub
parent ee591bc54b
commit f35a3797e0
+11
View File
@@ -0,0 +1,11 @@
#include <Windows.h>
int main()
{
SYSTEM_INFO info;
::GetNativeSystemInfo(&info);
if (info.dwNumberOfProcessors < 2)
{
return -99;
}
}