GetGuiName Function

Action

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

Syntax

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.

Notes

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

Example

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