win32file.LockFile
LockFile(hFile, offsetLow, offsetHigh, nNumberOfBytesToLockLow, nNumberOfBytesToLockHigh)
Locks a specified file for exclusive access by the calling process.
Parameters
LockFile(hFile, offsetLow, offsetHigh, nNumberOfBytesToLockLow, nNumberOfBytesToLockHigh)
Locks a specified file for exclusive access by the calling process.