win32file.LockFile

LockFile(hFile, offsetLow, offsetHigh, nNumberOfBytesToLockLow, nNumberOfBytesToLockHigh)

Locks a specified file for exclusive access by the calling process.

Parameters

hFile : PyHANDLE

handle of file to lock

offsetLow : int

low-order word of lock region offset

offsetHigh : int

high-order word of lock region offset

nNumberOfBytesToLockLow : int

low-order word of length to lock

nNumberOfBytesToLockHigh : int

high-order word of length to lock