How Do I Determine if a Currently Running Application is a Component? (Magic xpa 2.x)
A Magic xpa project can be run as a host or as a component, depending on how it is implemented. So one project file can do double-duty. However, you can determine in which mode it is running by using the IsComponent() function.
Syntax: IsComponent()
Returns: TRUE if the task that is running is running as a component, FALSE otherwise.