[USER] 'Fix' SetWindowsHookEx

Lionel Ulmer lionel.ulmer at free.fr
Sat Jun 19 06:40:28 CDT 2004

On Mon, Jun 14, 2004 at 04:30:28PM -0700, Alexandre Julliard wrote:
> It may be that when the module handle is NULL Win95 falls back to a
> thread-local hook, or does some other strange magic; NT refuses to set
> a system-wide hook with a NULL module, so I'd expect your app to fail
> on NT (except if it does a version check, in which case it should run
> on Wine too if you set the Windows version to NT).

I just checked on my version of Win2K Pro and the application fails to start
there too. If someone could check with XP (maybe it has some funky 'old
application detection' mode to cope for that), it's the demo for Theme
Hospital that can be downloaded there: 


Just try to run 'hosp95.exe' and if the application just starts and exists
right away, you will have the bug.

So now we have two choices: either say 'well, this is a broken application,
it does not run at all on modern Windows OSes' or add some special case when
we set Wine's version to be 'win95' or 'win98' (a bit like we already do on
instruction emulation needed by old games like TombRaider 2).

As to how to progress from there, I am at a loss :-)


		 Lionel Ulmer - http://www.bbrox.org/

More information about the wine-devel mailing list