mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
* add std/private/win_getsysteminfo * import at the top level * wrappers follow nep1 too * follow review comment
16 lines
457 B
Nim
16 lines
457 B
Nim
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".}
|