title: How can I find the process id from the service name/handle in Delphi?
body: <p>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?</p>