win_getsysteminfo.nim 457 B

12345678910111213141516
  1. type
  2. SystemInfo* = object
  3. u1: uint32
  4. dwPageSize: uint32
  5. lpMinimumApplicationAddress: pointer
  6. lpMaximumApplicationAddress: pointer
  7. dwActiveProcessorMask: ptr uint32
  8. dwNumberOfProcessors*: uint32
  9. dwProcessorType: uint32
  10. dwAllocationGranularity*: uint32
  11. wProcessorLevel: uint16
  12. wProcessorRevision: uint16
  13. proc getSystemInfo*(lpSystemInfo: ptr SystemInfo) {.stdcall,
  14. dynlib: "kernel32", importc: "GetSystemInfo".}