summary refs log blame commit diff stats
path: root/lib/std/private/win_getsysteminfo.nim
blob: b98478231b230d695f778f122969b58c3f6e7234 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                            
type
  SystemInfo* = object
    u1: uint32
    dwPageSize: uint32
    lpMinimumApplicationAddress: pointer
    lpMaximumApplicationAddress: pointer
    dwActiveProcessorMask: ptr uint32
    dwNumberOfProcessors*: uint32
    dwProcessorType: uint32
    dwAllocationGranularity*: uint32
    wProcessorLevel: uint16
    wProcessorRevision: uint16

proc getSystemInfo*(lpSystemInfo: ptr SystemInfo) {.stdcall,
    dynlib: "kernel32", importc: "GetSystemInfo".}