From: Matt Armstrong Date: 2003-02-13T01:48:09+09:00 Subject: Re: Using open and then LockFile for a file vcotirlea@hotmail.com (vc) writes: > I'm porting a Unix application to Windows. Im using M$ VC++ > compiler. My problem is that on Unix the file locking mechanism is > done using the fcntl() function that doesn't exist on Windows. I > know that on Windows I can do this using CreateFile() to get the > HANDLE to a file and then this handle can be used in LockFile() for > locking the file. What about File#flock? -- matt