How does a driver detect a "net stop" request (if possible)?
TIA!!
--
Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply
"David F." <df2...@community.nospam> wrote in message
news:3EEF0CD9-6FC7-40E9...@microsoft.com...
> Hi,
>
> How does a driver detect a "net stop" request (if possible)?
>
> TIA!!
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4730 (20091230) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4730 (20091230) __________
The message was checked by ESET NOD32 Antivirus.
"Don Burn" <bu...@stopspam.windrvr.com> wrote in message
news:uwWRWkai...@TK2MSFTNGP06.phx.gbl...
--
Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply
"David F." <df2...@community.nospam> wrote in message
news:O73o0Ebi...@TK2MSFTNGP06.phx.gbl...
Correct.
>From then on I assume it's
> STOP_PENDING state but unload was never called (this is XP) ?
Correct.
> clear the stop_pending .. how does the service control manager determine if
> it can stop it or not?
It cannot. Only PnP can.
And, even PnP will leave you with half-destroyed devnode if there are open handles to it. Usually, the apps register for "please close this handle - the driver is unloading" situation, but not always.
--
Maxim S. Shatskih
Windows DDK MVP
ma...@storagecraft.com
http://www.storagecraft.com