Can an out-of-process COM object determine its parent process?

Posted by Tom Williams on Stack Overflow See other posts from Stack Overflow or by Tom Williams
Published on 2010-06-02T16:30:35Z Indexed on 2010/06/02 16:34 UTC
Read the original article Hit count: 266

Filed under:
|
|

From an out-of-process COM object (LocalServer32) can I determine the client process that requested the creation of the object? - to be specific I need to get hold of the client processes command line.

This question arrises because (due to poor standardisation, implementation and support) the potential 3rd party clients of the object have a variety of idiosyncracies which the object needs to workaround.

To do this the object needs to be able to identify its current client.

Extending the interface of the COM object so that the client can identify itself is unfortunately not possible ... or to be more precise the interface can be extended but I won't be able to get the clients to call the extension.

© Stack Overflow or respective owner

Related posts about c++

Related posts about com