I am doing automation using a combination of Windows messages sent directly to HWND and calls to a COM server opened by an automatic application.
If more than one instance is running, I need to determine the process ID of the COM server so that I can get to the same instance with a COM call as the one to which I am sending Windows messages.
I can list all running COM servers with a table of running objects and get scrolling for all of them, but the COM objects themselves do not provide methods that I can use to get a window handle, thread id, process id, or anything else like that.
Is there a way to find out, based on the nickname or the actual mandatory COM object of the nickname, what is the process ID of the COM server?
Thank!
source
share