 <p>Even thought it's an old post, has anyone got an idea why not using the following concept:</p> <ol> <li>Creating/opening a file with share mode of FILE_SHARE_WRITE.</li> <li>Having a named global mutex, and opening it.</li> <li>Whenever a file write is desired, lock the mutex first, then write to the file.</li> </ol> <p>Any input?</p>