winapi - Get Process ID of COM Server -
i'm doing automation via combination of windows message sending directly hwnds , calls com server exposed automated application.
if there more 1 instance running, need able determine process id of com server can hit same instance com call 1 i'm sending windows messages to.
i can enumerate running com servers running object table , monikers of them, com objects expose no methods can use window handle, thread id, process id, or of sort.
is there way figure out, based on moniker or actual binding com object of moniker, process id of com server is?
thanks!
if control (write code for) both server , client can add method com interface return process / thread id or of nature (e.g. server hostname if remote) on server end. second @hans - unless have access server implementation may out of luck design.
Comments
Post a Comment