At 04/25/2003 10:05 AM, Jason Teagle wrote:
>> I need to find out if a file is open by more than one user/app.
>>
>> Is this possible?
>>
>> I combed MSDN and the code sites and can't find anything,
>> possibly because
>> I don't know what to search for.
>
>I've just spent a small amount of time looking as well... I'm afraid it
>doesn't look like you can find out. I was wondering if you could walk the
>process list to find out what handles it had open, and then query each
>handle to see if it referred to the file in question, thus building a list
>of handles referring to your file (thus, the number of times it has bee
>opened, ignoring duplicate handles)... but I can't seem to see any functions
>for doing that.
SysInternals has a program Handlexx that proclaims to show all open files,
but that is not one of the ones with source.
I found a web article with code about open files, but you need the DDK to
compile it.
Phil Daley < AutoDesk >
http://personal.monad.net/~p_daley
