Originally posted as a Categorized Question.
In reply to Can I lock a file in Win32? by Anonymous Monk