net stop - failure!

Hello all,
I am coding a legacy device driver, that uses events
and a thread. All operations work correctly in WinXP.
In win2k, all operations work, except that stopping
the service using “net stop” does not work. By using
debug information, I see that the DriverUnload
function is not called at all. This happens only in
Win2k.

Where should I beging to look at? Any pointers would
be helpful. Is there any tool to check the status of
the driver?

Thanks and regards
DK


Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover

Maybe

  1. Someone has increased reference count to your
    driver object and has not decreased it (yet)

  2. Something is attached one of your device objects

  3. There are handles open which belongs to your driver

L.