LockFileEx function kernel32
Locks the specified file for exclusive access by the calling process. This function can operate either synchronously or asynchronously and can request either an exclusive or a shared lock.
BOOL LockFileEx(
[in] HANDLE hFile,
[in] DWORD dwFlags,
DWORD dwReserved,
[in] DWORD nNumberOfBytesToLockLow,
[in] DWORD nNumberOfBytesToLockHigh,
[in, out] LPOVERLAPPED lpOverlapped
);
Implementation
int LockFileEx(
int hFile,
int dwFlags,
int dwReserved,
int nNumberOfBytesToLockLow,
int nNumberOfBytesToLockHigh,
Pointer<OVERLAPPED> lpOverlapped) =>
_LockFileEx(hFile, dwFlags, dwReserved, nNumberOfBytesToLockLow,
nNumberOfBytesToLockHigh, lpOverlapped);