Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Jun Tangunan
  Where is Jun Tangunan?
 Cabanatuan
 Philippines
 Jun Tangunan
 To: Pete Sass
  Where is Pete Sass?
 Marathon, Ontario
 Canada
 Pete Sass
 Tags
Subject: RE: Kill EXE API
Thread ID: 416387 Message ID: 416390 # Views: 70 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Win32API programming
Date: Monday, December 29, 2014 2:21:49 AM         
   


> Hi,
>
> Looking for api code routines to :
> 1. kill any running exe.
> 2. Enumerate processor id.
>
> Cannot use scripting as client has all scripting disabled on
> all their computers.
>
> I am pretty sure News2News has examples of these both for the
> past 5 days I cannot access this site at all and regardless of
> what computer in my shop I try to access this site with I get . . .
>
> Downloader detected...
> Due to bandwidth limitations for this site, all requests from
> crawlers, downloaders, offline readers and scripts are generally
> rejected.
> News2News advises on this page click here to advise us if you think
> the above is a mistake, but this takes you to a buy now page and nothing
> to do with advising them your IP address is not a crawler, etc.
>
> Never seen this message before, and I seldom if every download
> anything from this site. Was able to access News2News 2 weeks ago
> and copied and pasted 5-6 liner API.
>
> Anyone have API calls for Kill and Processor ID, I would be thankful!
>
> Pete "the IceMan", from the Great White North of Canada.
> www.marathongriffincomputers.com

KillProcess("YourApp.exe")

**************
Function KillProcess("cProcess")
**************
Local loWMI, lcQuery, loResult, loProcess
loWMI = Getobject("winmgmts://")
lcQuery = '"select * from win32_process where name='+"'"+Alltrim(m.cProcess)+"'"+ ' "'
lcSQL=&lcQuery
loResult = loWMI.ExecQuery(m.lcSQL)
If loResult.Count > 0
	For Each loProcess In loResult
		loProcess.Terminate(0)
	Next
Endif
Endfunc



https://vfpx.codeplex.com/releases/view/99045
http://sandstorm36.blogspot.com

ENTIRE THREAD

Kill EXE API Posted by Pete Sass @ 12/29/2014 1:40:46 AM
RE: Kill EXE API Posted by Chuanbing Chen @ 12/29/2014 1:55:13 AM
RE: Kill EXE API Posted by Pete Sass @ 12/29/2014 2:09:06 AM
RE: Kill EXE API Posted by Jun Tangunan @ 12/29/2014 2:21:49 AM
RE: Kill EXE API Posted by Pete Sass @ 12/29/2014 3:11:45 AM
RE: Kill EXE API Posted by Jun Tangunan @ 12/29/2014 7:13:26 AM
RE: Kill EXE API Posted by Mike Gagnon @ 12/29/2014 3:12:39 AM
RE: Kill EXE API Posted by Jun Tangunan @ 12/29/2014 7:16:19 AM
RE: Kill EXE API Posted by Pete Sass @ 12/29/2014 12:07:30 PM
RE: Kill EXE API Posted by Mike Gagnon @ 12/29/2014 12:28:36 PM
RE: Kill EXE API Posted by Pete Sass @ 12/29/2014 1:46:26 PM
RE: Kill EXE API Posted by Greg Green @ 12/29/2014 3:44:35 AM
RE: Kill EXE API Posted by Pete Sass @ 12/29/2014 1:22:22 PM
RE: Kill EXE API Posted by Jun Tangunan @ 12/30/2014 1:30:04 AM
RE: Kill EXE API Posted by Mike Gagnon @ 12/30/2014 5:48:41 PM
RE: Kill EXE API Posted by Pete Sass @ 12/30/2014 6:20:59 PM
RE: Kill EXE API Posted by Victor Espina @ 12/29/2014 3:38:47 PM