This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
Can someone tell me where I can find the answers to:
1. Installed Memory?
2. CPU Speed?
I would really appreciate it a lot. Thank You.
I have Win XP with 2nd DL (I forget what it is called)
Memory: GlobalMemoryStatusEx, ullTotalPhys member of MEMORYSTATUSEX struct.
HKEY hKey = NULL; if (RegOpenKey(HKEY_LOCAL_MACHINE, L"HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0", &hKey) == ERROR_SUCCESS) { wchar_t sMHz[10]; DWORD dwMHz = 0; DWORD dwBufferSize = sizeof(dwMHz); if (RegQueryValueEx(hKey, L"~MHz", NULL, NULL, (LPBYTE)&dwMHz, &dwBufferSize) == ERROR_SUCCESS) { swprintf(sMHz, 10, L"%u", dwMHz); wcout << sMHz << endl; } RegCloseKey(hKey); }