Posted on 1997-03-30
I have a mouse driver, and an application that needs to send some information to the driver. I use DeviceIoControl to do this. It works fine when the driver was installed. However, when the driver is removed and the application calls CreateFile (in order to get the handle used by DeviceIoControl), it crashes. I think it is due to the initialisation code of the driver which conflicts with the current mouse driver. How shall I do with this problem? Is there a way to determine whether a driver is being loaded by device manager of by the "CreateFile" API from the application? Or how shall the application detects that the correct driver has not been loaded?
Thanks in advance.