I have client code like that:
Dim server as Object
Set server = CreateObject("some-prog-id")
Server-in-exe is launched and for some reasons it hangs from time to time. I have to kill it in taskmanager to make my client alive. I'd like to kill Sever-in-exe process automatically when time is expired but don't know how to properly get it's ID. Actually I know process name but there could be several processes with the same name that were launched previously.
How do I determine process that was launched by my client code?