Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Killing a DOS FTP window
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00969520
Message ID:
00969794
Views:
21
This message has been marked as a message which has helped to the initial question of the thread.
Hi Patrick,

If you can obtain a handle for this window, then you may try to use the TerminateProcess API.

- call GetThreadProcessId to get the identifier for a process linked to this window
- call OpenProcess to get the process handle
- call TerminateProcess with this handle

FoxPro code sample applying this technique:

Terminating all running applications from a VFP program
http://www.news2news.com/vfp/?example=243
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform