More from Hack :

VB Code:
  1. Private Type MEMORYSTATUS
  2.     dwLength As Long
  3.     dwMemoryLoad As Long
  4.     dwTotalPhys As Long
  5.     dwAvailPhys As Long
  6.     dwTotalPageFile As Long
  7.     dwAvailPageFile As Long
  8.     dwTotalVirtual As Long
  9.     dwAvailVirtual As Long
  10. End Type
  11.  
  12. Private Declare Sub GlobalMemoryStatus Lib "kernel32" (lpBuffer As MEMORYSTATUS)
  13.  
  14. Dim MS As MEMORYSTATUS
  15. MS.dwLength = Len(MS)
  16. GlobalMemoryStatus MS
  17. MsgBox MS.dwMemoryLoad & " percentage memory used"
  18. MsgBox MS.dwTotalPhys & " total amount of physical memory in bytes"
  19. MsgBox MS.dwAvailPhys & " available physical memory"
  20. MsgBox MS.dwTotalPageFile & " total amount of memory in the page file"
  21. MsgBox MS.dwAvailPageFile & " available amount of memory in the page file"
  22. MsgBox MS.dwTotalVirtual & " total amount of virtual memory"
  23. MsgBox MS.dwAvailVirtual & " available virtual memory"
  24.  
  25. Private Declare Sub GetSystemInfo Lib "kernel32" (lpSystemInfo As SYSTEM_INFO)
  26. Private Type SYSTEM_INFO
  27.         dwOemID As Long
  28.         dwPageSize As Long
  29.         lpMinimumApplicationAddress As Long
  30.         lpMaximumApplicationAddress As Long
  31.         dwActiveProcessorMask As Long
  32.         dwNumberOrfProcessors As Long
  33.         dwProcessorType As Long
  34.         dwAllocationGranularity As Long
  35.         dwReserved As Long
  36. End Type
  37.  
  38. Dim InfoResult As SYSTEM_INFO
  39. GetSystemInfo InfoResult
  40. MsgBox "Your CPU type is " & InfoResult.dwProcessorType
  41. MsgBox "You have " & InfoResult.dwNumberOrfProcessors & " processor(s)"