I'm trying to stop the service mshidkmdf
, but it won't stop despite the fact it's STOPPABLE. I'm able to stop the driver from device manager (the device stack is \Driver\mshidkmdf
and the description is HID-compliant touch screen
). When I run sc query mshidkmdf
, I get:
SERVICE_NAME: mshidkmdf
TYPE : 1 KERNEL_DRIVER
STATE : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
which implies that the service is STOPPABLE
. But, when I run sc stop mshidkmdf
, I get:
[SC] ControlService FAILED 1052:
The requested control is not valid for this service.
and when I run net stop mshidkmdf
, I get:
The requested pause, continue, or stop is not valid for this service.
More help is available by typing NET HELPMSG 2191.
I know the service is running because a) my touch screen is running and b) when I run sc start mshidkmdf
, I get:
[SC] StartService FAILED 1056:
An instance of the service is already running.
My goal is to stop the device (my touch screen) that is run by the driver through the command line, but as far as I understand the driver and the service are the same thing.