diff options
author | astrolantique <myself@ioexception.at> | 2014-12-30 00:24:32 -0600 |
---|---|---|
committer | astrolantique <myself@ioexception.at> | 2014-12-30 00:24:32 -0600 |
commit | c77176e0c7cd1d0f5f2d7ccf4fe0281b02e7c079 (patch) | |
tree | 87b79ce5ab4373fc821c6691f225f52ea90f5692 /lib/impure/osinfo_win.nim | |
parent | 32af9f878b1a8f54ff919f7282ddcbd7aa698f36 (diff) | |
download | Nim-c77176e0c7cd1d0f5f2d7ccf4fe0281b02e7c079.tar.gz |
Added NT 6.2 and NT 6.3 (8/8.1)
Diffstat (limited to 'lib/impure/osinfo_win.nim')
-rw-r--r-- | lib/impure/osinfo_win.nim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/impure/osinfo_win.nim b/lib/impure/osinfo_win.nim index f423a34a3..becec928e 100644 --- a/lib/impure/osinfo_win.nim +++ b/lib/impure/osinfo_win.nim @@ -245,6 +245,14 @@ proc `$`*(osvi: TVersionInfo): string = if osvi.ProductType == VER_NT_WORKSTATION: result.add("Windows 7 ") else: result.add("Windows Server 2008 R2 ") + elif osvi.minorVersion == 2: + if osvi.ProductType == VER_NT_WORKSTATION: + result.add("Windows 8 ") + else: result.add("Windows Server 2012 ") + elif osvi.minorVersion == 3: + if osvi.ProductType == VER_NT_WORKSTATION: + result.add("Windows 8.1 ") + else: result.add("Windows Server 2012 R2 ") var dwType = getProductInfo(osvi.majorVersion, osvi.minorVersion, 0, 0) case dwType |