DECLARE INTEGER SendMessage IN Win32API; INTEGER hWnd, INTEGER uMsge, INTEGER wParm, INTEGER lParm * Call Is_Run32 with the title (lctitle in this case) lnhWnd = Is_Run32(lctitle) * Close the application - 16 = WM_CLOSE = SendMessage(lnhWnd, 16, 0, 0)I also seem to recall that WM_QUERYENDSESSION also works, but it's a little more complex to use.