source:
dev/branches/egtra/ab5.0/abdev/ab_common/src/OSVersion.cpp@
820
Last change on this file since 820 was 798, checked in by , 14 years ago | |
---|---|
File size: 264 bytes |
Rev | Line | |
---|---|---|
[798] | 1 | #include "stdafx.h" |
2 | ||
3 | namespace ActiveBasic { namespace Common { | |
4 | ||
5 | OSVERSIONINFO const& GetOSVersion() | |
6 | { | |
7 | static OSVERSIONINFO vi; | |
8 | if (vi.dwOSVersionInfoSize == 0) | |
9 | { | |
10 | vi.dwOSVersionInfoSize = sizeof vi; | |
11 | ::GetVersionEx(&vi); | |
12 | } | |
13 | return vi; | |
14 | } | |
15 | ||
16 | }} |
Note:
See TracBrowser
for help on using the repository browser.