Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine all current Win process
Message
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01064064
Message ID:
01064068
Views:
208
>How can I enum process' - in order that they may be ended
FUNCTION KillAcrobat()
	loCIMV2		= GetObject("winmgmts://localhost/root/cimv2")
	loProcesses	= loCIMV2.ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'Acrobat.exe'")
	IF loProcesses.Count > 0
		For Each objProcess in loProcesses
			objProcess.Terminate(0)
		NEXT
	ENDIF

	RETURN
ENDFUNC
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform