Process Hacker Discussion Forum

 
KingSD
New User
Posts: 1
Joined: 05 Apr 2017 22:45
OS: win10x64

Command line version for handles

05 Apr 2017 22:40

First of all , process hacker is working perfectly and its a good software but i am not kind of c++ guy and i need only command line tool of "Find Handles or DLLs" to make simple search of file type and process type of handles for using on my vb.net project , is it possible?
 
User avatar
dmex
Admin
Posts: 1703
Joined: 17 Jan 2011 05:43

Re: Command line version for handles

05 Apr 2017 22:51

KingSD wrote: 05 Apr 2017 22:40
command line tool of "Find Handles or DLLs" to make simple search
https://technet.microsoft.com/en-us/sys ... andle.aspx
 
KingSD
New User
Posts: 1
Joined: 05 Apr 2017 22:45
OS: win10x64

Re: Command line version for handles

05 Apr 2017 23:01

Handle v4.1 is not viewing process type of handles , already tried it, thanks anyway.
 
dino

Re: Command line version for handles

17 Oct 2018 12:47

It would be even better to extract the code (without the GUI) that is used in "Find handles" to a component / library / DLL that is usable by other programs. I would like to use it in a C# application.
During my research I have found tons of posts from people that are looking for a similar API in many different programming languages (e.g. Powershell).
BTW: handle.exe didn't show handles for serial ports (which I am particularly interested in), but process explorer and processhacker did!
 
User avatar
AltF4
Member
Posts: 77
Joined: 15 Mar 2011 00:53
OS: XP SP3

Re: Command line version for handles

19 Nov 2018 04:17

dino wrote: 17 Oct 2018 12:47
It would be even better to extract the code (without the GUI) that is used in "Find handles" to a component / library / DLL that is usable by other programs. I would like to use it in a C# application.
During my research I have found tons of posts from people that are looking for a similar API in many different programming languages (e.g. Powershell).
BTW: handle.exe didn't show handles for serial ports (which I am particularly interested in), but process explorer and processhacker did!
Hi, I have C# code to do this. Perhaps I could compile some app with it and host it on github? I won’t make any commitments but hit me up with some specs you want the CLI app (and/ GUI Winform?) to do...
 
Guest

Re: Command line version for handles

17 Jul 2019 12:34

Hi AltF4,
sorry for the late reply, I forgot to check back periodically.
There is already C# code for this on Github: https://github.com/donid/WinKernelObjectsDotNet
This code worked on an older Win10 version, but then suddenly stopped working - it blocks indefinitely when it tries to get some specific handles (or throws exceptions)...
I did extensive research some months ago and it seemed that this is impossible to do reliably in C# since you need some sort of c++ driver.
That was quite a while ago, so I forgot the details. And since processhacker has everything that is needed and it works brilliantly I thought it
would be the a good Idea to make that feature available for C# programmers (which would automatically help Powershell programmers).
 
ninireufame
New User
Posts: 2
Joined: 17 Feb 2020 01:22
OS: wj32.org

Command line version for handles

24 Feb 2020 00:16

I an not sure if the below feature already exists or not... If it does, please let me know how to do it if Not, then it would be great to have it in next version..

I want to issue a command at start of each connection.

For example: stty erase ?

Thanks