LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i get get the process list (Windows)

If you try to kill a process you started, try External Application Lib:  It'll lunch an application and return with the process id; and terminate any process (with process id).
 
George Zou
 
George Zou
0 Kudos
Message 11 of 15
(3,780 Views)
Here is the 7.0-version.
0 Kudos
Message 12 of 15
(3,770 Views)
Here is a function I put together with LV and .net nodes it tool all of 2 minutes but still will list process handles and names of all processes on a system.  I haven't had a chance to play with it but hope it helps.  .Net allows some nice access to many of the stuff kernel and user32 used to do through dlls, but it is somewhat easier to find what you are looking for.  I am still a newbie with the framework though.  if you cant get the process ID's enumerated why don't you call kill process in a loop from 1 to 2^32 (This is not a serious suggestion).
 
Paul
You will need the .net 1.1 framework installed to run
code is in LV 7.0
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 13 of 15
(3,767 Views)
The .net gives you access to both handles and process IDs through property nodes, you also have the ability to get much other info on all the processes running on a system, is this a security flaw? Maybe not there could be permissions teid to all of these calls but I dont know.
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 14 of 15
(3,766 Views)
I did some tests and works, thanks for the VI.
0 Kudos
Message 15 of 15
(3,112 Views)