Which process has a file open

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
Back
Top