Q: How do I determine whether the application is stand-alone or
is being called as an OLE server?
A: Look at paramstr(1) of the OLE server. It will either have
the '-Embedding' parameter or not. The '-Embedding' parameter tells
you that this is an instance from the OLE server rather than being called
stand-alone.