Recent

Author Topic: Get handle of a process  (Read 4673 times)

benohb

  • Full Member
  • ***
  • Posts: 213
Get handle of a process
« on: August 05, 2017, 07:24:07 pm »
I need a library or help to query handles in a process
This is an example with c++
http://www.cplusplus.com/forum/windows/95774/

ASerge

  • Hero Member
  • *****
  • Posts: 2223
Re: Get handle of a process
« Reply #1 on: August 05, 2017, 07:47:02 pm »
I need a library or help to query handles in a process
This is an example with c++
http://www.cplusplus.com/forum/windows/95774/
See https://forum.sysinternals.com/topic18892.html and make the library.

Thaddy

  • Hero Member
  • *****
  • Posts: 14204
  • Probably until I exterminate Putin.
Re: Get handle of a process
« Reply #2 on: August 05, 2017, 09:10:39 pm »
http://www.delphibasics.info/home/delphibasicssnippets/listallopenhandlesfromopenprocesses
http://www.delphibasics.info/home/delphibasicssnippets/processunitbyaphexwithexample
http://www.delphibasics.info/home/delphibasicssnippets/enumerateprocesses

Some of that code is actually better than the C++ lib.....

It is usually not a normal question.... but I gave up some time ago, so I gave you the answer(s) anyway.

WHY do you need that? It is very unlikely you need it.....
« Last Edit: August 05, 2017, 09:20:19 pm by Thaddy »
Specialize a type, not a var.

benohb

  • Full Member
  • ***
  • Posts: 213
Re: Get handle of a process
« Reply #3 on: August 06, 2017, 06:36:53 am »
Thaddy
Quote
WHY do you need that?


I need something like inotify in linux . but only for proces of  windows explorer  to know it is folder location  (address)
Your code work but don't show folder like Resource Monitor -Please see attachments ::)


I think I'm wrong   %) ...  is there another way

balazsszekely

  • Guest
Re: Get handle of a process
« Reply #4 on: August 06, 2017, 07:03:08 am »

benohb

  • Full Member
  • ***
  • Posts: 213
Re: Get handle of a process
« Reply #5 on: August 09, 2017, 05:50:45 am »

thank you all
 :D

 

TinyPortal © 2005-2018