Are you going to add more tools to it such as process suspension, reducing process priority etc. like the real Process Explorer (or Process Hacker, which is even better)?
Here's some code example for suspending calc.exe, maybe it'll help:
Since I got no time atm to work on it, I post the link to the beta source in top post.
Todo:
- WTSEnumerateProcessesEx 32-Bit (atm just 64-Bit works)
- GetProcessTimes
Feel free to work on / improve this project and / or add new features.
Post here what you got and maybe, if I got the time, I will add them into the main project.
Re: Process Explorer
Posted: 27 Aug 2016, 21:54
by arcticir
Hi, How to obtain the "CommandLine"?
AND, Now it seems to be unable to work. WIN8-64 L1-32
Re: Process Explorer
Posted: 28 Aug 2016, 01:06
by loter
lol good job:D
Re: Process Explorer
Posted: 20 Oct 2017, 03:49
by jNizM
Source completely rewritten!
Re: Process Explorer
Posted: 17 May 2022, 15:20
by c7aesa7r
Hello, do you know a "faster" alternative to get a process command line than below?
For process in ComObjGet("winmgmts:").ExecQuery("Select ProcessId, CommandLine from Win32_Process where ProcessId=" pid)
Return, process["CommandLine"]
I'm currently on my smartphone so... I hope it works for you
Re: Process Explorer
Posted: 30 May 2022, 08:05
by c7aesa7r
I'm using this function to constantly check for two specific processes, to detect when new ones are created or older ones are closed
with a delay of just 300ms its using 0,4% of CPU (i9990k) do you think there's another alternative that could use less resource?
I couldn't find any mention in your Process Explorer lib about ParentProcessId, would like to ask if you or maybe @teadrinker (someone else also welcome ) know any faster method than:
pid:=5984
for process in ComObjGet("winmgmts:").ExecQuery("Select * from Win32_Process where ProcessId=" pid)
parent:=process["ParentProcessId"]
msgbox % parent