How to get process handle of a local COM server?
问题 I have an IUnknown pointer to a COM local (out of process) server in my Windows client application. Would like to get a handle to the window process that is running the local COM server. Any way to do this via COM without adding a new interface to the server to request the process handle? (I can't easily change the server). Why do I want to do this? Because I am trying to make sure the out-of-proc COM server gets shutdown IF my application crashes. I wanted to use windows job objects for this