Zinvob
asked on
Telephony service hangs, how do I kill it?
I have a problem with my GPRS modem. Sometimes the telephony service hangs, and I have to restart the computer. I want to kill this service without restarting. The problem is that this program is running inside one of the svchost processes, so it's not so easy to kill without killing something else too.
I've tried "net stop", but the service is not responding, trying to shut it down inside services.msc is just the same.
Does anyone here know some api calls, or some tools to kill this service, and this service only?
I've tried "net stop", but the service is not responding, trying to shut it down inside services.msc is just the same.
Does anyone here know some api calls, or some tools to kill this service, and this service only?
ASKER
As I stated, it's running inside the svchost process, so the only thing I could kill this way is the svchost process. And I don't want to do this, as there are other services also running inside the same process.
ASKER
Does anyone know how to use api calls to get the same effect as "tasklist /svc"?
ASKER
Tried to unload the tapisrv.dll, but then the whole system got unstable, so this was no good idea :)
But I found another method:
taskkill /FI "SERVICES eq TapiSrv" /F
Kills only the svchost process that contains the telephony service (TapiSrv). Still I would like to kill only a little part of the process instead of everything. Because now I have to restart all the other services inside that svchost also. And to do that I have to first go through all services before executing the taskkill, and after killing the svchost I have to restore the state of those that have changed.
Is there a way to do this easy?
But I found another method:
taskkill /FI "SERVICES eq TapiSrv" /F
Kills only the svchost process that contains the telephony service (TapiSrv). Still I would like to kill only a little part of the process instead of everything. Because now I have to restart all the other services inside that svchost also. And to do that I have to first go through all services before executing the taskkill, and after killing the svchost I have to restore the state of those that have changed.
Is there a way to do this easy?
ASKER
Solution is as follows (in easier terms):
First I loop through all services, recording their state (loaded/not loaded).
execute: taskkill /FI "SERVICES eq TapiSrv" /F
Loop through all services, restoring state for those who have changed.
First I loop through all services, recording their state (loaded/not loaded).
execute: taskkill /FI "SERVICES eq TapiSrv" /F
Loop through all services, restoring state for those who have changed.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
it is used kill -f procesid
Cheers,
Jurgen