SetFilePointerEx function Null safety kernel32

int SetFilePointerEx (
  1. int hFile,
  2. int liDistanceToMove,
  3. Pointer<Int64> lpNewFilePointer,
  4. int dwMoveMethod
)

Moves the file pointer of the specified file.

BOOL SetFilePointerEx(
  HANDLE         hFile,
  LARGE_INTEGER  liDistanceToMove,
  PLARGE_INTEGER lpNewFilePointer,
  DWORD          dwMoveMethod
);

Implementation

int SetFilePointerEx(int hFile, int liDistanceToMove,
    Pointer<Int64> lpNewFilePointer, int dwMoveMethod) {
  final _SetFilePointerEx = _kernel32.lookupFunction<
      Int32 Function(IntPtr hFile, Int64 liDistanceToMove,
          Pointer<Int64> lpNewFilePointer, Uint32 dwMoveMethod),
      int Function(
          int hFile,
          int liDistanceToMove,
          Pointer<Int64> lpNewFilePointer,
          int dwMoveMethod)>('SetFilePointerEx');
  return _SetFilePointerEx(
      hFile, liDistanceToMove, lpNewFilePointer, dwMoveMethod);
}