[plt-scheme] file lock
Hello Chris Warrington,
Thanks I'll look into that. I agree, it is off scheme.
Jos Koot
----- Original Message -----
From: Chris Warrington
To: jos koot
Cc: David Gurvich ; plt-scheme at list.cs.brown.edu
Sent: Tuesday, December 19, 2006 8:40 PM
Subject: Re: [plt-scheme] file lock
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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20061220/123ccdbd/attachment.html>