The answer in stackoverflow is not the documented way to achieve the behavior your want. This essentially marks a legacy driver as a pnp driver (and pnp drivers are not stoppable by sc), but this has other potential side effects you don't want. Simply do not assign a DriverUnload routine and then your driver cannot be stopped or unloaded.
how can i develop a driver that is not_stoppable?
Vincent ChengS
1
Reputation point
i can see "NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN" when i use command "sc query " to see some drivers' state.
But my own driver is "STOPPABLE, ...".
I wish my driver service to be "NOT_STOPPABLE".
How can i make it?
Windows for business | Windows Client for IT Pros | Devices and deployment | Other
2 answers
Sort by: Most helpful
-
-
S.Sengupta 29,431 Reputation points MVP Volunteer Moderator
2022-12-18T01:45:18.58+00:00