Similarly:

> If LockFile cannot lock a region of a file, it returns zero immediately. It does not block. To issue a file lock request that will block until the lock is acquired, use LockFileEx without the LOCKFILE_FAIL_IMMEDIATELY flag.

http://msdn.microsoft.com/en-us/library/windows/desktop/aa365202%28v=vs.85%29.aspx