I have an application which supports out-of-process COM automation. Now, I want it to be able to behave differently when it is launched by user and when it is started by COM to serve an automation request. How can I distinguish these cases from within the application?
Googling has brought me nothing, and the only idea I have so far is to determine the parent process, but I'm not sure how fragile it would be.