Hi,
I am writing an upper layer function driver, this driver should be
compatible with WinXP and with Win2K ( No service pack ), the driver is
created as exclusive and is loaded and unloaded dynamically by a custom
user-mode app ( the app loads it upon startup and unloads it during
termination ), running the driver on WinXP works smoothly BUT running it on
Win2K ( No SP ) result problems:
On first run every thing works fine, BUT, on the second run, driver startup
( StartService ) fails with "The system cannot find the specified file"
although the file wasn't deleted or changed and it's corresponding registry
entry is valid: HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\%My Driver
Name%
ImagePath = \??\C:\SETSDriver.sys
I have used SoftIce to verify the on the initial run the driver unloads
successfuly, I have set a break point at the drivers Unload callback, and
indeed, the driver was successfuly unloaded...
I have also tried using NuMegas DriverMonitor to load and re-load my driver
and go the same results, first run succeeds, the second failâ?¦.
What may cause this problem?
Why does it works fine with WinXP while it fail with Win2K? What WinXP does
differently then Win2k [???]
Any help pointer or remark would be appreciated.
--
Nadav
http://www.sophin.com