GetGuiName Function


Returns the name of the graphical user interface (GUI) under which the agent on the current machine, or a specified machine, is running.


sName = GetGuiName ([hMachine])
Variable Description
sName The name of the GUI. STRING.
hMachine Optional. Handle of the machine for which you want the GUI name. When only one machine is connected or when you want the GUI name for the current machine, you can omit this argument. HMACHINE.


GetGuiName returns the name of the GUI under which the agent on the current or specified machine is running, for example, "Microsoft Windows".


STRING sGUIName = GetGuiName()
Print("The present GUI is {sGUIName}")