FindVolumeClose function Null safety kernel32

int FindVolumeClose (
  1. int hFindVolume
)

Closes the specified volume search handle. The FindFirstVolume and FindNextVolume functions use this search handle to locate volumes.

BOOL FindVolumeClose(
  HANDLE hFindVolume
);

Implementation

int FindVolumeClose(int hFindVolume) {
  final _FindVolumeClose = _kernel32.lookupFunction<
      Int32 Function(IntPtr hFindVolume),
      int Function(int hFindVolume)>('FindVolumeClose');
  return _FindVolumeClose(hFindVolume);
}