mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 19:14:56 -06:00
22 lines
309 B
C++
Executable File
22 lines
309 B
C++
Executable File
// Windows/System.h
|
|
|
|
#ifndef __WINDOWS_SYSTEM_H
|
|
#define __WINDOWS_SYSTEM_H
|
|
|
|
#include "..\Common\Types.h"
|
|
|
|
namespace NWindows {
|
|
namespace NSystem {
|
|
|
|
static UInt32 GetNumberOfProcessors()
|
|
{
|
|
SYSTEM_INFO systemInfo;
|
|
GetSystemInfo(&systemInfo);
|
|
return (UInt32)systemInfo.dwNumberOfProcessors;
|
|
}
|
|
|
|
|
|
}}
|
|
|
|
#endif
|