GetVolumeInformationByHandle function kernel32
Retrieves information about the file system and volume associated with the specified file.
BOOL GetVolumeInformationByHandleW(
HANDLE hFile,
LPWSTR lpVolumeNameBuffer,
DWORD nVolumeNameSize,
LPDWORD lpVolumeSerialNumber,
LPDWORD lpMaximumComponentLength,
LPDWORD lpFileSystemFlags,
LPWSTR lpFileSystemNameBuffer,
DWORD nFileSystemNameSize
);
Implementation
int GetVolumeInformationByHandle(
int hFile,
Pointer<Utf16> lpVolumeNameBuffer,
int nVolumeNameSize,
Pointer<Uint32> lpVolumeSerialNumber,
Pointer<Uint32> lpMaximumComponentLength,
Pointer<Uint32> lpFileSystemFlags,
Pointer<Utf16> lpFileSystemNameBuffer,
int nFileSystemNameSize) =>
_GetVolumeInformationByHandle(
hFile,
lpVolumeNameBuffer,
nVolumeNameSize,
lpVolumeSerialNumber,
lpMaximumComponentLength,
lpFileSystemFlags,
lpFileSystemNameBuffer,
nFileSystemNameSize);