Share via

how can i develop a driver that is not_stoppable?

Vincent ChengS 1 Reputation point
2022-12-14T06:03:04.783+00:00

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
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Doron Holan 1,801 Reputation points
    2022-12-31T03:54:47.703+00:00

    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.

    0 comments No comments

  2. S.Sengupta 29,431 Reputation points MVP Volunteer Moderator
    2022-12-18T01:45:18.58+00:00
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.