mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2026-09-19 18:01:25 +03:00
v4.23-9647-beta
This commit is contained in:
+21
-7
@@ -3,9 +3,9 @@
|
||||
//
|
||||
// SoftEther VPN Server, Client and Bridge are free software under GPLv2.
|
||||
//
|
||||
// Copyright (c) 2012-2016 Daiyuu Nobori.
|
||||
// Copyright (c) 2012-2016 SoftEther VPN Project, University of Tsukuba, Japan.
|
||||
// Copyright (c) 2012-2016 SoftEther Corporation.
|
||||
// Copyright (c) Daiyuu Nobori, Ph.D..
|
||||
// Copyright (c) SoftEther VPN Project, University of Tsukuba, Japan.
|
||||
// Copyright (c) SoftEther Corporation.
|
||||
//
|
||||
// All Rights Reserved.
|
||||
//
|
||||
@@ -983,6 +983,24 @@ void Win32DebugAlert(char *msg)
|
||||
MessageBox(NULL, msg, "Debug", MB_SETFOREGROUND | MB_TOPMOST | MB_SERVICE_NOTIFICATION | MB_OK | MB_ICONEXCLAMATION);
|
||||
}
|
||||
|
||||
// Get the number of CPUs
|
||||
UINT Win32GetNumberOfCpuInner()
|
||||
{
|
||||
UINT ret = 0;
|
||||
SYSTEM_INFO info;
|
||||
|
||||
Zero(&info, sizeof(info));
|
||||
|
||||
GetSystemInfo(&info);
|
||||
|
||||
if (info.dwNumberOfProcessors >= 1 && info.dwNumberOfProcessors <= 128)
|
||||
{
|
||||
ret = info.dwNumberOfProcessors;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
// Get the OS information
|
||||
void Win32GetOsInfo(OS_INFO *info)
|
||||
{
|
||||
@@ -3522,7 +3540,3 @@ void Win32PrintToFileW(wchar_t *str)
|
||||
#endif // WIN32
|
||||
|
||||
|
||||
|
||||
// Developed by SoftEther VPN Project at University of Tsukuba in Japan.
|
||||
// Department of Computer Science has dozens of overly-enthusiastic geeks.
|
||||
// Join us: http://www.tsukuba.ac.jp/english/admission/
|
||||
|
||||
Reference in New Issue
Block a user