Robert Simpson wrote:
----- Original Message ----- From: "Doug Nebeker"
<[EMAIL PROTECTED]>
Two comments:
* This should only be used for Windows CE as-is. On Windows
XP/2000/2003(?)/Terminal Services you should probably add "Global\"
to the front of the mutex name so the lock is truly system wide.
Unforunately, you'd have to query Windows to see whether that prefix
could/should be added, but that is doable.
Correct -- this code path would not be available for non-CE
platforms. For testing purposes however, it'll run on any flavor of
Windows. The code is designed around SQLite's use of those API calls
under the NT codepath.
* Although it is unlikely, the complete mutex name could end up
being larger than MAX_PATH in which case the mutex won't be created
at all. Maybe creating a hash of the path would be safest (ie
"Global\sqlite_X4F12F9AB481727BCD" or something like that).
It is pretty highly unlikely, but I suppose hashing the name is a
possibility.
I incorporated the locks into the latest CVS version of os_win.c and
it's available here:
http://sqlite.phxsoftware.com/os_win.c
Would i be possible to post the whole src? (Taking the 3.3.1 src and
your file sadly does not work).
Regards Simon