Because the desktop is a GUI object, it derives from the AnyWin class. However, unlike other GUI objects, you do not have to record a declaration for the desktop. Instead, you use the predefined identifier Desktop when you want to use a method on the desktop.

For example, to call the GetActive method on the desktop, you use a call like the following:
wActive = Desktop.GetActive ()