UnlockFileEx method

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

Implementation

int UnlockFileEx(
  ffi.Pointer<ffi.Void> hFile,
  int dwReserved,
  int nNumberOfBytesToUnlockLow,
  int nNumberOfBytesToUnlockHigh,
  ffi.Pointer<LPOVERLAPPED> lpOverlapped,
) {
  return (_UnlockFileEx ??= _dylib
      .lookupFunction<_c_UnlockFileEx, _dart_UnlockFileEx>('UnlockFileEx'))(
    hFile,
    dwReserved,
    nNumberOfBytesToUnlockLow,
    nNumberOfBytesToUnlockHigh,
    lpOverlapped,
  );
}