Determine which process has handle to file

delphi package - easy access to kernel objects etc.
Post Reply
Ferry van Genderen
Posts: 3
Joined: Fri Apr 07, 2006 2:31 pm
Location: The Netherlands

Determine which process has handle to file

Post by Ferry van Genderen »

Sometimes I cannot delete files because they are in use by another process. What I really want and need to know is which processes have open handles to that file...

Is there a way to accomplish this with madshi or any other way??
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

It's possible in the NT family by using madKernel. However, use it with care, as I've heard that sometimes (in rare cases) other apps don't like it, if you aks their file handles.

In win9x it's theoretically possible, too, but I don't know how, unfortunately.
Post Reply