Lock a File

From: DP (ramneek_devinder_at_comcast.net)
Date: 01/23/04


Date: 23 Jan 2004 06:16:17 -0700

Hi,
  How do I Lock a file so that second user trying to open the file is just
able to read the contents. The first user needs to be able to read and
write both.
   I have been trying to play with CreateFile API and its flags and somehow
it seems to fail when an attempt is made to open a same file across the
network by two users.

Any ideas on how to achieve this.

Thanks

DP



Relevant Pages