GetVolumeInformationByHandleW method

int GetVolumeInformationByHandleW(
  1. Pointer<Void> hFile,
  2. Pointer<Uint16> lpVolumeNameBuffer,
  3. int nVolumeNameSize,
  4. Pointer<Uint64> lpVolumeSerialNumber,
  5. Pointer<Uint64> lpMaximumComponentLength,
  6. Pointer<Uint64> lpFileSystemFlags,
  7. Pointer<Uint16> lpFileSystemNameBuffer,
  8. int nFileSystemNameSize,
)

Implementation

int GetVolumeInformationByHandleW(
  ffi.Pointer<ffi.Void> hFile,
  ffi.Pointer<ffi.Uint16> lpVolumeNameBuffer,
  int nVolumeNameSize,
  ffi.Pointer<ffi.Uint64> lpVolumeSerialNumber,
  ffi.Pointer<ffi.Uint64> lpMaximumComponentLength,
  ffi.Pointer<ffi.Uint64> lpFileSystemFlags,
  ffi.Pointer<ffi.Uint16> lpFileSystemNameBuffer,
  int nFileSystemNameSize,
) {
  return (_GetVolumeInformationByHandleW ??= _dylib.lookupFunction<
      _c_GetVolumeInformationByHandleW,
      _dart_GetVolumeInformationByHandleW>('GetVolumeInformationByHandleW'))(
    hFile,
    lpVolumeNameBuffer,
    nVolumeNameSize,
    lpVolumeSerialNumber,
    lpMaximumComponentLength,
    lpFileSystemFlags,
    lpFileSystemNameBuffer,
    nFileSystemNameSize,
  );
}