Returns the OS Version on which the program has been launched. It could help to
enabled/disable automatically some features depending of the running OS.
'Result' can be one of the following values:
- #PB_OS_Windows_NT3_51
- #PB_OS_Windows_95
- #PB_OS_Windows_NT_4
- #PB_OS_Windows_98
- #PB_OS_Windows_ME
- #PB_OS_Windows_2000
- #PB_OS_Windows_XP
- #PB_OS_Windows_Server_2003
- #PB_OS_Windows_Future ; New Windows version (not existent when the program was written)
Example:
Select OSVersion()
Case #PB_OS_Windows_98
MessageRequester("Info", "Windows 98")
Case #PB_OS_Windows_2000
MessageRequester("Info", "Windows 2000")
Case #PB_OS_Windows_XP
MessageRequester("Info", "Windows XP")
Default
MessageRequester("Info", "Unsupported Windows version")
EndSelect