kernel32: Make CreateFile called with creation == 0 work when opening a vxd in win9x mode.

Saulius Krasuckas saulius2 at ar.fi.lt
Mon Mar 12 15:19:14 CDT 2012


* On Sun, 11 Mar 2012, Dmitry Timoshkov wrote:
> 
> A widely used approach to open/load device drivers under win9x is
> 
> /* Check if already loaded in system.ini */
> hvxd = CreateFile("\\\\.\\mydevice", 0, 0, 0, 0, 0, 0);
> if (hvxd == INVALID_HANDLE_VALUE)
>     /* Load dynamically from PATH */
>     hvxd = CreateFile("\\\\.\\path\\to\\mydevice.vxd", 0, 0, 0, CREATE_NEW, FILE_FLAG_DELETE_ON_CLOSE, 0);
> 
> First call never succeeds under Wine, and some device drivers refuse to 
> load more than once.

Are there any proof one can see?
What application does behave like this?
Where has this source excerpt come from?

S.



More information about the wine-devel mailing list