On Tue, 23 Oct 2001, Marcus Meissner wrote:
Hi,
There was following change to misc/version.c: revision 1.44 date: 2001/07/27 23:57:38; author: julliard; state: Exp; lines: +1 -1 Bob Goodwin goodie1@pacbell.net Fix the 16bit win95 version.
This makes for instance InstallShield, that uses DOS3CALLs to check for win95, report a Bad Windows Version. (Installer of Monkey Island 3)
Reference wine-devel post is: http://www.winehq.com/hypermail/wine-devel/2001/07/0085.html
If there is a testprogram, I can still boot Windows 95...
Ladislav Sladecek lsla@post.cz posted a program to check the 16bit version back in august: http://www.winehq.com/hypermail/wine-devel/2001/08/0275.html
I think the revert is the right thing to do. And this is what I get on the Win95 computers I have access to. I also recently found that quite a few installers are not happy with 0x0304. I attached Ladislav's 16bit test application and also attached a application I wrote that dumps what the 32bit GetVersion and GetVersionEx return.
Bob, how did you come up with 0x07000304? Was it from the Daggerfall application or from a windows computer? If the latter, then could you run the attached tests and report what the results?
Here are the result of the tests I have done here:
* Win95 (the original version): It does indeed return 0x5f03 in 16bit mode. The CSDVersion does not seem to match in 32bit mode: GetVersion: version = 0xc0000004 GetVersionInfoEx: size = 148 major = 4 minor = 0 build = 0x40003b6 platform = VER_PLATFORM_WIN32_WINDOWS CSDVersion= "" vs. "Win95" in Wine
I don't know if this could cause problems.
* Win98SE: Returns 0x5f03 in 16bit mode, like Wine. No problem in 16bit mode. In 32bit mode I get some discrepencies, probably because this is SE and not the original 98: GetVersion: version = 0xc0000a04 GetVersionInfoEx: size = 148 major = 4 minor = 10 build = 0x40a08ae vs. 0x40A07CE in Wine platform = VER_PLATFORM_WIN32_WINDOWS CSDVersion= " A " vs. "Win98" in Wine
* NT4: Everything is fine.
Tonight I hope to get results for Win2000 and WinXP.
-- Francois Gouget fgouget@free.fr http://fgouget.free.fr/ RFC 2549: ftp://ftp.isi.edu/in-notes/rfc2549.txt IP over Avian Carriers with Quality of Service
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?