UnlockFileEx function kernel32

int UnlockFileEx(
  1. int hFile,
  2. int dwReserved,
  3. int nNumberOfBytesToUnlockLow,
  4. int nNumberOfBytesToUnlockHigh,
  5. Pointer<OVERLAPPED> lpOverlapped,
)

Unlocks a region in the specified file. This function can operate either synchronously or asynchronously.

BOOL UnlockFileEx(
  [in]      HANDLE       hFile,
            DWORD        dwReserved,
  [in]      DWORD        nNumberOfBytesToUnlockLow,
  [in]      DWORD        nNumberOfBytesToUnlockHigh,
  [in, out] LPOVERLAPPED lpOverlapped
);

Implementation

int UnlockFileEx(int hFile, int dwReserved, int nNumberOfBytesToUnlockLow,
        int nNumberOfBytesToUnlockHigh, Pointer<OVERLAPPED> lpOverlapped) =>
    _UnlockFileEx(hFile, dwReserved, nNumberOfBytesToUnlockLow,
        nNumberOfBytesToUnlockHigh, lpOverlapped);