阅读背景:

如何从Delphi中的服务名称/句柄中找到进程ID?

来源:互联网 

I have the service name for a windows service in delphi, and I know how to get the handle from that as well. What I need to do is stop a service, and if the stop fails for some reason I need to kill the process associated with the service. The problem is that I have multiple services running from the same executable, so I can't use the executable name to kill the process. This means I need the process id to kill the proper associated process. How can I get this id or some way to kill the proper process from the service name or handle?I have the service name for a windows service i




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: