diff options
Diffstat (limited to 'CPP/Windows/System.h')
-rwxr-xr-x | CPP/Windows/System.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/CPP/Windows/System.h b/CPP/Windows/System.h new file mode 100755 index 00000000..e1a5abac --- /dev/null +++ b/CPP/Windows/System.h @@ -0,0 +1,21 @@ +// Windows/System.h + +#ifndef __WINDOWS_SYSTEM_H +#define __WINDOWS_SYSTEM_H + +#include "..\Common\Types.h" + +namespace NWindows { +namespace NSystem { + +inline UInt32 GetNumberOfProcessors() +{ + SYSTEM_INFO systemInfo; + GetSystemInfo(&systemInfo); + return (UInt32)systemInfo.dwNumberOfProcessors; +} + + +}} + +#endif |