[plt-scheme] file lock

From: Chris Warrington (chrisw at rice.edu)
Date: Tue Dec 19 14:40:03 EST 2006

jos koot @ 2006-12-19 1:24:06 PM
"[plt-scheme] file lock" <mid:002701c723a3$405fa580$2101a8c0 at joskoot>

> MsWord realy locks its open files from being write-accessed by other
> applications. This would be rather convenient. But I cannot figure
> out how MsWord does this locking.

Going a little non-PLT-Scheme here...

I'd take a look at the LockFile, UnlockFile, and CreateFile WIN32 API
calls. You should be able to use them with foreign.ss. You may need to
create a new port type to do this locking nicely.

Chris Warrington <chrisw at rice.edu>

Should vegetarians eat animal crackers?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20061219/0f2f4074/attachment.sig>

Posted on the users mailing list.