Retrieves the current operating system.
OsEx()
Return Value
An integer representing the operating system in use.
Value | OS |
---|---|
1 | Windows 95 |
2 | Windows 95 OSR2 |
3 | Windows 98 |
4 | Windows 98 Second Edition |
5 | Windows Millennium |
6 | Windows NT 3.5 |
7 | Windows NT 4.0 |
8 | Windows NT 4.0 Server |
9 | Windows 2000 |
10 | Windows XP |
11 | Windows XP Professional x64 |
12 | Windows Home Server |
13 | Windows Vista |
14 | Windows Server 2003 |
15 | Windows Server 2003 R2 |
16 | Windows 7 |
17 | Windows Server 2008 |
18 | Windows Server 2008 R2 |
19 | Unknown Windows with a higher version number |
Remarks
If compatibility mode is in effect, the OsEx function reports the operating system as it identifies itself, which may not be the operating system that is installed. For example, if compatibility mode is in effect, OsEx reports the operating system that is selected for application compatibility.
See Also
Reference
ADesktopArea
ADesktops
ADisplayDevices
AResolutions
AWindowStations
ExpandEnvironmentStrings
GetLocaleInfoEx
GetSystemDirectory
GetWindowsDirectory