Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shutting down an application
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00135143
Message ID:
00135147
Views:
12
>Well, I've done it again and misplaced the information on what API function and constants to use to programatically shut down a running application from another application. It's SendMessage() with certain parameters or something like that ... isn't it? ... George ... you out there? ... George?
>
Hidy Bill,

Seems like I just answered this one yesterday.:-) Here goes:
DECLARE INTEGER SendMessage IN Win32API;
  INTEGER hWnd, INTEGER uMsg, INTEGER wparm, INTEGER lparm
#define WM_CLOSE  0x0010
* lnhWnd is the Window handle
= SendMessage(lnhWnd, WM_CLOSE, 0, 0)
hth,
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform