#include "stdafx.h" #include <windows.h> #include <tchar.h> #include <stdio.h> #include <iostream> public class TEST2 { public: void WindowsVersion() { DWORD dwWinVer; dwWinVer = GetVersion(); _tprintf ( _T("Windows version: %d.%d.%d"), LOBYTE(LOWORD(dwWinVer)), HIBYTE(LOWORD(dwWinVer)), // LoWord HIWORD(dwWinVer)); } void processinfo() { SYSTEM_INFO sysInfo; GetSystemInfo(&sysInfo); _tprintf( _T("\n Number of processs is running on %d"), sysInfo.dwNumberOfProcessors);//process ketli chale che }}; int main() { TEST2 t2; t2.WindowsVersion(); t2.processinfo(); system("pause"); return 0; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)