SHARE
TWEET

Untitled

a guest Sep 21st, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <windows.h>
  2. #include <stdio.h>
  3.  
  4. void main()
  5. {
  6.     system("color F0");
  7.     SYSTEM_INFO siSysInfo;
  8.  
  9.     GetSystemInfo(&siSysInfo);
  10.  
  11.     printf("Hardware info: \n");
  12.     printf("OEM ID: %u\n", siSysInfo.dwOemId);
  13.     printf("Number of processors: %u\n", siSysInfo.dwNumberOfProcessors);
  14.     printf("Page size: %u\n", siSysInfo.dwPageSize);
  15.     printf("System Architecture: %u\n", siSysInfo.wProcessorArchitecture);
  16.     printf("Processor type: %u\n", siSysInfo.dwProcessorType);
  17.     printf("Minimum application address: %lx\n", siSysInfo.lpMinimumApplicationAddress);
  18.     printf("Maximum application address: %lx\n", siSysInfo.lpMaximumApplicationAddress);
  19.     printf("Active processor mask: %u\n", siSysInfo.dwActiveProcessorMask);
  20.  
  21.     char Buffer[MAX_PATH];
  22.     GetWindowsDirectory((char*)&Buffer, MAX_PATH);
  23.     printf("Windows Path: %s\n", Buffer);
  24.  
  25.     GetTempPath(MAX_PATH,(char*)&Buffer);
  26.     printf("Temp Path: %s\n", Buffer);
  27.  
  28.     printf("\n");
  29.     MEMORYSTATUS sysk;
  30.     GlobalMemoryStatus(&sysk);
  31.     printf("Memory status: %u\n",sysk.dwLength);
  32.     printf("Total Phys: %u\n",sysk.dwTotalPhys);
  33.     printf("Available Phys: %u\n",sysk.dwAvailPhys);
  34.     printf("Total Virtual: %u\n",sysk.dwTotalVirtual);
  35.     printf("Available Virtual: %u\n",sysk.dwAvailVirtual);
  36. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top