We need to stop the system calls in the Desktop UI and need a query if the code is running under a Desktop UI.
How to find out that the code are running in the Desktop UI? Similar to isUltralight( ).
There is no dedicated function available to get the information if a Desktop UI is used.
As most of the time the Desktop UI is started on a machine which is not a WinCC OA server you can possibly compare the information for eventHost() with the local host name. If the names do not match a remote UI is started.
Best Regards
Leopold Knipp
Senior Support Specialist
Why do you want to make a difference between a normal client UI and a Desktop-UI?
A Desktop-UI is more or less the same like a normal Runtime UI with a simplified installation and a simple project administration.
Best Regards
Leopold Knipp
Senior Support Specialist
System calls such as opening the GEDI do not work in the Desktop UI. But it works for normal client. That's the reason why we don't want to offer such functions under Desktop UI at all.
With the information given by the CTRL constant WINCCOA_PATH you can also determine if a Desktop UI is used as the Desktop UI is installed in a fixed path.
E.g. for WinCC OA 3.17: C:/Siemens/Automation/WinCC_OA/DesktopUI/3.17/
Best Regards
Leopold Knipp
Senior Support Specialist