I\'ve turned an ancient, but still useful, Delphi 5 application into an out of process COM server. I vaguely recall that there\'s a way to tell if it\'s started directly by
It seems that the exe is started with the switch "-Embedding" when started as a COM server.