= PostMessage(hWindow, WM_SYSCOMMAND, SC_CLOSE, 0)
it works better than= PostMessage(hWindow, WM_QUIT, 0,0)If it does not help then more radical tool is applied:
= TerminateProcess(hProcess, 0)
Win API functions used:CloseHandle GetActiveWindow GetWindow GetWindowText GetWindowTextLength GetWindowThreadProcessId IsWindow IsWindowVisible OpenProcess PostMessage TerminateProcessSample code: Terminating all running applications from the VFP