I know how to start stop services programatically. However I have this stubborn service that's a 3rd party vendor tool. I use that's hanging all my stuff up but going into a forever stopping mode. How can I kill a service as I would an application programmatically.
I have this sample code but can't get it to kill the actual service.
' if exception is caught will attempt to force process removal
'willl attempt to kill process if sends a catch statement else this satement will be bypassed
For Each pr As Process In Process.GetProcesses
If (pr.ProcessName = "SpeechServer") Then
If Not pr.HasExited Then
Catch ex As Exception
MsgBox(ex.Message + " problem with kill section Character Server Stopping ")