Here is a patch based on the information I got from WinMe and WinXP. It adds support for both, fixes the 16bit version of Win2000 and confirms its other values from SP2. I also updated the comment about the various versions of Win95 and changed the CSDVersion field to match their Windows values.
Could people check and complete this info, especially for Win95sp1 (950a) and the various Win95osr2. Also if anyone knows how to check the dos version reported by NT...
Here is the info I collected here:
Win95: GetVersion16= 0x5f03 GetVersion: version = 0xc0000004 GetVersionInfoEx: size = 148 major = 4 minor = 0 build = 0x40003b6 platform = VER_PLATFORM_WIN32_WINDOWS CSDVersion= ""
Win98: GetVersion16=0x5f03 GetVersion: version = 0xc0000a04 GetVersionInfoEx: size = 148 major = 4 minor = 10 build = 0x40a07ce platform = VER_PLATFORM_WIN32_WINDOWS CSDVersion= " "
Win98SE: GetVersion16= 0x5f03 GetVersion: version = 0xc0000a04 GetVersionInfoEx: size = 148 major = 4 minor = 10 build = 0x40a08ae platform = VER_PLATFORM_WIN32_WINDOWS CSDVersion= " A "
WinMe: GetVersion16= 0x5f03 GetVersion: version = 0xc0005a04 GetVersionInfoEx: size = 148 major = 4 minor = 90 build = 0x45a0bb8 platform = VER_PLATFORM_WIN32_WINDOWS CSDVersion= " "
NT40sp5: GetVersion16= 0xa03 GetVersion: version = 0x05650004 GetVersionInfoEx: size = 148 major = 4 minor = 0 build = 0x565 platform = VER_PLATFORM_WIN32_NT CSDVersion= "Service Pack 5"
NT40sp6: GetVersion16= 0xa03 GetVersion: version = 0x05650004 GetVersionInfoEx: size = 148 major = 4 minor = 0 build = 0x565 platform = VER_PLATFORM_WIN32_NT CSDVersion= "Service Pack 6"
Win2000sp2: GetVersion16= 0x5f03 GetVersion: version = 0x08930005 GetVersionInfoEx: size = 148 major = 5 minor = 0 build = 0x893 platform = VER_PLATFORM_WIN32_NT CSDVersion= "Service Pack 2"
WinXP: GetVersion16= 0x5f03 GetVersion: version = 0x0a280105 GetVersionInfoEx: size = 148 major = 5 minor = 1 build = 0xa28 platform = VER_PLATFORM_WIN32_NT CSDVersion= ""
-- Francois Gouget fgouget@free.fr http://fgouget.free.fr/ In a world without fences who needs Gates?