DECLARE INTEGER GetActiveWindow IN user32
DECLARE INTEGER GetDesktopWindow IN user32
DECLARE INTEGER IsWindowEnabled IN user32 INTEGER hwnd
? IsWindowEnabled (GetActiveWindow()) && main VFP window
? IsWindowEnabled (GetDesktopWindow()) && Windows desktop