LockFileEx method

int LockFileEx(
  1. Pointer<Void> hFile,
  2. int dwFlags,
  3. int dwReserved,
  4. int nNumberOfBytesToLockLow,
  5. int nNumberOfBytesToLockHigh,
  6. Pointer<LPOVERLAPPED> lpOverlapped,
)

Implementation

int LockFileEx(
  ffi.Pointer<ffi.Void> hFile,
  int dwFlags,
  int dwReserved,
  int nNumberOfBytesToLockLow,
  int nNumberOfBytesToLockHigh,
  ffi.Pointer<LPOVERLAPPED> lpOverlapped,
) {
  return (_LockFileEx ??=
      _dylib.lookupFunction<_c_LockFileEx, _dart_LockFileEx>('LockFileEx'))(
    hFile,
    dwFlags,
    dwReserved,
    nNumberOfBytesToLockLow,
    nNumberOfBytesToLockHigh,
    lpOverlapped,
  );
}