How can I find the name of the process that has a certain file in use?

  • Thread starter Thread starter Marcel Brekelmans
  • Start date Start date
M

Marcel Brekelmans

Hi,

Is there a way to find the name of the process that has a file open? I know
of tools, like Unlocker, that can do it, so I assume there are some
systemcalls that can help me out.

Thanks.
 
Marcel Brekelmans said:
Hi,

Is there a way to find the name of the process that has a file open? I know of tools, like
Unlocker, that can do it, so I assume there are some systemcalls that can help me out.

Thanks.

No there are no system calls or public API's available for this, tools like Unlocker and
tools from Sysinternals are just using some non documented ntdll API's and are inspecting
the handle tables of each individual process, this requires "debugging privileges" to be
granted to the "spying" application.

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top