Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DestroyWindow
Message
 
 
To
26/09/2000 07:45:11
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00420813
Message ID:
00420817
Views:
31
>Hi All,
>
>I am trying to have 1 .exe close down another. I know the windows handle of the .exe I wish to close. I tried:
>
>PROCEDURE close_window
> LPARAMETER hhndl
>
> DECLARE INTEGER DestroyWindow IN WIN32API INTEGER hHandle
> =DestroyWindow(hhndl)
>
>Is there a way to close a running .exe?
>
>TIA
>Mike

Mike,
From a previous post of mine. HTH.
#DEFINE WM_CLOSE 0x10
declare integer SendMessageA in "user32" as "SendMessage" integer hwnd, integer wMsg, integer wParam, integer lParam

=SendMessage(lnwnd,WM_CLOSE, 0, 0)
FWIW, this is something you have to look at and see if it what you really want to do. Simply shutting down an application in the middle of something could cause problems. If it is a database application using network files (not back-end) then data corruption could occur as a result. Just my $0.02.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform