SetFilePointer function Null safety kernel32

int SetFilePointer (
  1. int hFile,
  2. int lDistanceToMove,
  3. Pointer<Int32> lpDistanceToMoveHigh,
  4. int dwMoveMethod
)

Moves the file pointer of the specified file.

DWORD SetFilePointer(
  HANDLE hFile,
  LONG   lDistanceToMove,
  PLONG  lpDistanceToMoveHigh,
  DWORD  dwMoveMethod
);

Implementation

int SetFilePointer(int hFile, int lDistanceToMove,
    Pointer<Int32> lpDistanceToMoveHigh, int dwMoveMethod) {
  final _SetFilePointer = _kernel32.lookupFunction<
      Uint32 Function(IntPtr hFile, Int32 lDistanceToMove,
          Pointer<Int32> lpDistanceToMoveHigh, Uint32 dwMoveMethod),
      int Function(
          int hFile,
          int lDistanceToMove,
          Pointer<Int32> lpDistanceToMoveHigh,
          int dwMoveMethod)>('SetFilePointer');
  return _SetFilePointer(
      hFile, lDistanceToMove, lpDistanceToMoveHigh, dwMoveMethod);
}