DECLARE INTEGER SendMessage IN Win32API; INTEGER hwnd, INTEGER uMsg,; INTEGER wParam, INTEGER lParam #DEFINE WM_CLOSE 0x0010 #DEFINE WM_DESTROY 0x0002 #define WM_QUIT 0x0012 PROCEDURE KillWindows * This assumes that the above declaration are in effect. LPARAMETER pctitle LOCAL lnhwnd * Call Is_Run for a window handle lnhwhnd = Is_Run32(pctitle) DO WHILE NOT EMPTY(lnhwnd) * If this doesn't work try the other * values = SendMessage(lnhwnd, WM_CLOSE, 0, 0) lnhwnd = Is_Run(pctitle) ENDDONaturally, I'd test this pretty thoroughly before implementation.