Which process has a file open

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a windows API call which will tell me which process has a file open?
 
Is there a windows API call which will tell me which process has a file open?

George,

As far as I know there's no simple API call to do this. If you want a
utility that will do it, have a look at the excellent Process Explorer
tool at www.sysinternals.com

Dave
 
David Lowndes said:
George,

As far as I know there's no simple API call to do this. If you want a
utility that will do it, have a look at the excellent Process Explorer
tool at www.sysinternals.com

Dave
Thanks, That will get me what I need.

George
 
It's not that hard.

It can't be that straightforward either when that article contains a
warning like this:

"This software uses a few undocumented functions (ntdll.dll), peeks
around in your systems internals. Use at your own risk! It works for
me".

:)

Dave
 
David Lowndes said:
It can't be that straightforward either when that article contains a
warning like this:

"This software uses a few undocumented functions (ntdll.dll), peeks
around in your systems internals. Use at your own risk! It works for
me".

:)

Dave

Which are the same internal API's used by sysinternals Process Explorer :-)

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