Returns the current Windows platform. Read-only.
object.OSPlatform as Integer
The OSPlatform property settings are:
Constant (Macros) |
Constant (Scripts) |
Value |
Description |
OSWin31 |
nlOSWin31 |
0 |
Windows 3.1 or Windows for Workgroups 3.11. |
OSWin95 |
nlOSWin95 |
1 |
Windows 95. |
OSWin98 |
nlOSWin98 |
4 |
Windows 98. |
OSWinME |
nlOSWinME |
5 |
Windows ME. |
OSWinNT |
nlOSWinNT |
2 |
Windows NT, 2000, XP and above. |
OSWin2000 |
nlOSWin2000 |
6 |
Windows 2000. |
OSWinXP |
nlOSWinXP |
7 |
Windows XP. |
OSWin2003 |
nlOSWin2003 |
8 |
Windows 2003. |
OSUnknown |
nlnlOSUnknown |
3 |
Windows 2003. |
Use OSVersion property to determine the current operating system for Windows 2000 and above.
CPU property | OSVersion property
© 2004-2021 looksoftware. All rights reserved.