Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
End process progmatically
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00171940
Message ID:
00172374
Views:
23
>Thanks George. Your is_run function helped me find out that the title bar text is actually "Microsoft Visual FoxPro". I was able to put all window titles and their corresponding handles into an array. I was able to destroy any process except the VFP process (it runs in hidden mode and can have up to 9 instances running at once). Where might I find reasons why the destroy function(SendMessage) could fail or other functions that may help? Do you think this function would still work if the program had haulted due to an error?
>Thanks for all the help!

Hi David,

According to the SDK if an application properly processes the WM_DESTROY message it should return zero. In general, I can't think of an instance other than the application being locked down, where it wouldn't work. That, however, may be dependent on the individual application and what it does. Still, I haven't tested the function call against a non-responding app, so this is conjecture.

There is a function, named DestroyWindow(), but it merely sends WM_DESTROY and WM_NCDESTROY messages, so I don't think that it would provide the necessary functionality required to shutdown a non-responding app.

That's about all the additional information I can provide on the subject.
George

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

Click here to load this message in the networking platform