Title: RE: [msvc] Open files?

At 04/28/2003 07:33 AM, Ehsan Akhgari wrote:

 >> Other people can open the same file using this program or
 >> other programs on
 >> other computers.
 >>
 >> The problem is having others users opening the same file at
 >> the same time.
 >
 >How about a named memory mapped file in which to store the information
 >of who has which file open?  A similar approach could also work for
 >cross-machine file access, perhaps?

That sounds like a lot of work.  I was hoping for some OS call to tell me
how many times a file is open.

I found some code on the web that discovers that information, but at the
device driver level.  I was hoping for a higher level access to that
information.

It doesn't sound worth fixing to me.  The solution is to turn file locking on.

Phil Daley          < AutoDesk >
http://personal.monad.net/~p_daley

Reply via email to