Hi All.
I had posted this issue some times back. Can any one help me on this?
This is the story:
My driver is working fine as expected. But I am not able to delete the
driver (.sys file) from drivers folder
or overwrite it with another version , even after unloading the driver
successfully !!!. Each time our custemers have to reboot the machine to
do it !! Windows says,someuser mapped section is left, so I don't have the
permission to delete it. I can delete the driver if I haven't run
any user application on top of it. My driver code always runs and uses
NonPaged memory pools. Driver is running on Windows XP
machine with all driver verifier options enabled (of course without low
memory simulation).
It doesn't report any errors while I unload the driver. I could not see
any resources left after unloading the driver (used Winobj, winmsd,
process explorer etc.). And I haven't run Event Viewer.
Can anyone suggest, how the application program can prevent deleting a
driver file? Application interacts with the driver only through
IOCTLs. It does not know .sys's name.
Thanking You,
Mohamed Biju Koothrat