1#include"iostream"2#include"windows.h"3#include"shlwapi.h"4#include"Iomanip"5 #pragmaComment (lib, "Shlwapi.lib")6 using namespacestd;7 8 voidMain () {9 system_info si;TenZeroMemory (&si,sizeof(SI)); OneGetSystemInfo (&si); A - TCHAR Szpagesize[max_path]; - strformatbytesize (si.dwpagesize,szpagesize,max_path); the -DWORD Dwmemsize= (DWORD) si.lpmaximumapplicationaddress-(DWORD) si.lpminimumapplicationaddress; - TCHAR Szmemsize[max_path]; - strformatbytesize (dwmemsize,szmemsize,max_path); + -cout<<"Virtual memory page size:"<<szPageSize<<Endl; +Cout.fill ('0'); Acout<<"Minimum Application address:0x" at<<Hex -<<SETW (8) -<<(DWORD) si.lpminimumapplicationaddress -<<Endl; -cout<<"Maximum Application address:0x" -<<HEX<<SETW (8) in<<(DWORD) si.lpmaximumapplicationaddress -<<Endl; to +cout<<"Total available virtual memory:" -<<szMemSize<<Endl; the * GetChar (); $}