FindNextFile function Null safety kernel32

int FindNextFile (
  1. int hFindFile,
  2. Pointer<WIN32_FIND_DATA> lpFindFileData

Continues a file search from a previous call to the FindFirstFile, FindFirstFileEx, or FindFirstFileTransacted functions.

BOOL FindNextFileW(
  HANDLE             hFindFile,
  LPWIN32_FIND_DATAW lpFindFileData


int FindNextFile(int hFindFile, Pointer<WIN32_FIND_DATA> lpFindFileData) {
  final _FindNextFile = _kernel32.lookupFunction<
      Int32 Function(IntPtr hFindFile, Pointer<WIN32_FIND_DATA> lpFindFileData),
      int Function(int hFindFile,
          Pointer<WIN32_FIND_DATA> lpFindFileData)>('FindNextFileW');
  return _FindNextFile(hFindFile, lpFindFileData);