Paul McNett wrote:

> I don't know about specific code, however on the WinXP commandline there 
> are 2 applications available that would provide the basic ingredients:
> 
> tasklist (known as tlist prior to xp)
> kill


My apologies! kill on my system is provided by cygwin, which brings 
linux tools to windows. (plug for cygwin: it rocks being able to have a 
semblance of my linux bash shell on Windows).

However, I know I've found tools online to do this. I think one of them 
was called 'process.exe'. Googling for 'windows kill process' seems to 
find some interesting leads.

I guess if I were to pursue this from VFP I'd want to find the relevant 
win32 api functions to call, and not use external commandline 
applications for this.

googling 'win32 api function enumerate process' yields this promising 
hit which promises to show how to do it from VB (which will give you the 
API functions to translate to VFP):

http://msdn2.microsoft.com/en-us/library/ms173043(VS.80).aspx
"""
This sample demonstrates calling Win32 API functions to enumerate and 
control processes and windows, and to query and change system settings.
"""

-- 
pkm ~ http://paulmcnett.com



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to