source:
dev/branches/egtra/ab5.0/abdev/ab_common/src/OSVersion.cpp
Last change on this file was 798, checked in by , 14 years ago | |
---|---|
File size: 264 bytes |
Line | |
---|---|
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.