OSVersion() bug?
Posted: Thu Apr 09, 2009 6:02 pm
The following code compiled with the 32 bit version of PureBasic then run on XP Pro 64 bit displays "#PB_OS_Windows_Server_2003". Is that correct or am I missing something? On XP 32 bit it displays XP, as expected.
Code: Select all
Select OSVersion()
Case #PB_OS_Windows_NT3_51
MessageRequester("","#PB_OS_Windows_NT3_51")
Case #PB_OS_Windows_95
MessageRequester("","#PB_OS_Windows_95")
Case #PB_OS_Windows_NT_4
MessageRequester("","#PB_OS_Windows_NT_4")
Case #PB_OS_Windows_98
MessageRequester("","#PB_OS_Windows_98")
Case #PB_OS_Windows_ME
MessageRequester("","#PB_OS_Windows_ME")
Case #PB_OS_Windows_2000
MessageRequester("","#PB_OS_Windows_2000")
Case #PB_OS_Windows_XP
MessageRequester("","#PB_OS_Windows_XP")
Case #PB_OS_Windows_Server_2003
MessageRequester("","#PB_OS_Windows_Server_2003")
Case #PB_OS_Windows_Vista
MessageRequester("","#PB_OS_Windows_Vista")
Case #PB_OS_Windows_Server_2008
MessageRequester("","#PB_OS_Windows_Server_2008")
Case #PB_OS_Windows_Future
MessageRequester("","#PB_OS_Windows_Future")
EndSelect