Re: Need Help With getWinVersion()
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Nov 10, 2004
- 497 views
On Wed, 10 Nov 2004 11:47:21 -0800, Ferlin Scarborough <guest at RapidEuphoria.com> wrote: >There is not much in the Win32Lib documentation on getWinVersion(), I seem to >be having trouble using it properly, could someone tell me how to use it >please? The first element of the sequence returned is one of: global constant WIN_3_1 = 1, WIN_95 = 2, WIN_95_OSR2 = 2.5, WIN_98 = 3, WIN_98SE = 3.5, WIN_ME = 4, WIN_NT_3_51 = 5, WIN_NT_4 = 6, WIN_2000 = 7, WIN_XP = 8, WIN_UNKNOWN = 0 The remainder are mostly unintelligible gunk. As documented by M$, they are "arbitrary additional information", build number, and then optionally: service pack major, service pack minor, suite mask, and product type, ie not much use unless you are calling the M$ hotline. I suspect you just want eg if WinVer[1]=WIN_98SE then puts(1,"Windows 98 SE\n") else.... Regards, Pete