Re: kernel32: Make CreateFile called with creation == 0 work when opening a vxd in win9x mode.
12 Mar
2012
12 Mar
'12
8:19 p.m.
* 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.
5026
Age (days ago)
5026
Last active (days ago)
0 comments
1 participants
participants (1)
-
Saulius Krasuckas