Get handle of a process lazarus / 34-Windows ---------------------------------------------------------------------- benohb · 2017-08-05 17:24 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 · 2017-08-05 17:47 Quote from: benohb on August 05, 2017, 07:24:07 pmI 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 · 2017-08-05 19:10 http://www.delphibasics.info/home/delphibasicssnippets/listallopenhand lesfromopenprocesses http://www.delphibasics.info/home/delphibasicssnippets/processunitbyap hexwithexample http://www.delphibasics.info/home/delphibasicssnippets/enumerateproces ses 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..... ---------------------------------------------------------------------- benohb · 2017-08-06 04:36 ThaddyQuoteWHY 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 · 2017-08-06 05:03 @benohb This link contains all the info you need: https://stackoverflow.com/questions/8726906/delphi-finding-the- process-that-is-accessing-a-file-from-my-program ---------------------------------------------------------------------- benohb · 2017-08-09 03:50 thank you all