Thanks Anatoliy, can I get all the CONSTANT names from your site?
Thanks
Kev
>The
DestroyWindow function destroys the specified window. The function sends
WM_DESTROY and
WM_NCDESTROY messages to the window to deactivate it and remove the keyboard focus from it.
>
>There is nothing can be done if that window just chooses to ignore those messages.
>
>For closing another application from within a FoxPro program -- if window handle for this application is available -- try this:
>
>= PostMessage(hWindow, WM_SYSCOMMAND, SC_CLOSE, 0)
>
>or this
>
>= PostMessage(hWindow, WM_QUIT, 0,0)
>
>The first one works better.
>
>If neither of those helped, then try the last resort: obtain handle to the process and call
TerminateProcess, or with handle to the thread call the
TerminateThread.
>
>The
TerminateProcess does not care if the application finished its tasks in a proper manner.
>
>Check FoxPro sample code (members area):
>
Terminating all running applications from the VFP>
http://www.news2news.com/vfp/?example=243&function=247