First: Sorry about the lack of indentation, but I don't know how to turn HTML on and the FAQ doesn't say how either...
Anyway, can anyone help me with the problem of determing which Operating System my app is running on? Here's some code that VB uses to find it, by using the SysInfo control (I think), and a PureBasic equivalent would be great (including Windows XP too, unlike this example). Thanks!
BTW, please don't direct me to the Win32 API guide -- I've tried to work it out but can't. An actual working example would be preferred.
With osinfo
Select Case .dwPlatformId
Case 1
Select Case .dwMinorVersion
Case 0
getVersion = "Win95"
Case 10
getVersion = "Win98"
Case 90
getVersion = "WinME"
Case Else
getVersion = "Failed"
End Select
Case 2
Select Case .dwMajorVersion
Case 3
getVersion = "NT_3.51"
Case 4
getVersion = "NT_4.0"
Case 5
getVersion = "Win2000"
Case Else
getVersion = "Failed"
End Select
Case Else
getVersion = "Failed"
End Select
End With
Edited by - PB on 29 October 2001 03:13:11
