* * *

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

benohb

  • Full Member
  • ***
  • Posts: 140
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

  • Sr. Member
  • ****
  • Posts: 431
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: 4525
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 »
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

benohb

  • Full Member
  • ***
  • Posts: 140
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

GetMem

  • Hero Member
  • *****
  • Posts: 2328
Re: Get handle of a process
« Reply #4 on: August 06, 2017, 07:03:08 am »

benohb

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

thank you all
 :D

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus