LockFileEx(hFile, int, int, int, ol)
Locks a file. Wrapper for LockFileEx win32 API.
Parameters
hFile : PyHANDLE/int
Handle to the fileint : dwFlags
Flags that specify exclusive/shared and blocking/non-blocking modeint : nbytesLow
low-order part of number of bytes to lockint : nbytesHigh
high-order part of number of bytes to lockol=None : PyOVERLAPPED
An overlapped structure