Eric Pouech wrote:
$ wine -- /dos/d/vss/win32/ss.exe x11drv: Can't open display:
That should have worked ...
... first question is where does ss.exe pull USER32.DLL from ?
$ tools/winedump/winedump dump /dos/d/vss/win32/ss.exe ... Subsystem 0x3 (Windows CUI) ...
$ tools/winedump/winedump dump -j import /dos/d/vss/win32/ss.exe ... offset 370196 USER32.dll Hint/Name Table: 00069224 TimeDataStamp: 00000000 (Wed Dec 31 16:00:00 1969) ForwarderChain: 00000000 First thunk RVA: 000693E4 (delta: 4294967295 0xffffffff) Ordn Name 29 CharLowerA 697b6 564 SystemParametersInfoA 697f8 387 LoadStringA 6981e 39 CharToOemA 69810 43 CharUpperA 697c4 418 OemToCharBuffA 697d2 300 GetSystemMetrics 697e4
offset 370216 GDI32.dll Hint/Name Table: 00069094 TimeDataStamp: 00000000 (Wed Dec 31 16:00:00 1969) ForwarderChain: 00000000 First thunk RVA: 00069254 (delta: 4294967295 0xffffffff) Ordn Name ...
$ wine --debugmsg +loaddll /dos/d/vss/win32/ss.exe trace:loaddll:load_dll Loaded module 'C:\WINDOWS\SYSTEM\KERNEL32.dll' : builtin trace:loaddll:load_dll Loaded module 'C:\WINDOWS\SYSTEM\advapi32.dll' : builtin trace:loaddll:load_dll Loaded module 'C:\WINDOWS\SYSTEM\gdi32.dll' : builtin trace:loaddll:load_dll Loaded module 'C:\WINDOWS\SYSTEM\USER32.dll' : builtin trace:loaddll:load_dll Loaded module 'C:\WINDOWS\SYSTEM\rpcrt4.dll' : builtin trace:loaddll:load_dll Loaded module 'C:\WINDOWS\SYSTEM\ole32.dll' : builtin trace:loaddll:load_dll Loaded module 'C:\WINDOWS\SYSTEM\MPR.dll' : builtin trace:loaddll:MODULE_LoadModule16 Loaded module 'krnl386.exe' : builtin trace:loaddll:MODULE_LoadModule16 Loaded module 'system' : builtin trace:loaddll:MODULE_LoadModule16 Loaded module 'GDI.EXE' : builtin trace:loaddll:MODULE_LoadModule16 Loaded module 'USER.EXE' : builtin trace:loaddll:load_dll Loaded module 'C:\WINDOWS\SYSTEM\x11drv.dll' : builtin ...
And is there a chance of setting this behavior on a program-by-program basis? AppDefaults appears to be keyed off the driver already, so is probably not able to say "these apps should not use x11drv or ttydrv".
It wouldn't be very difficult to set the User32 Driver on a pgm per pgm basis.
That'd be nice. A commandline option would be optimal. .wine/config entries wouldn't be as useful, since sometimes you want to run them different ways, and editing one huge config file is a pain to script anyway.
- Dan