GetVolumeInformation function kernel32
Retrieves information about the file system and volume associated with the specified root directory.
BOOL GetVolumeInformationW(
LPCWSTR lpRootPathName,
LPWSTR lpVolumeNameBuffer,
DWORD nVolumeNameSize,
LPDWORD lpVolumeSerialNumber,
LPDWORD lpMaximumComponentLength,
LPDWORD lpFileSystemFlags,
LPWSTR lpFileSystemNameBuffer,
DWORD nFileSystemNameSize
);
Implementation
int GetVolumeInformation(
Pointer<Utf16> lpRootPathName,
Pointer<Utf16> lpVolumeNameBuffer,
int nVolumeNameSize,
Pointer<Uint32> lpVolumeSerialNumber,
Pointer<Uint32> lpMaximumComponentLength,
Pointer<Uint32> lpFileSystemFlags,
Pointer<Utf16> lpFileSystemNameBuffer,
int nFileSystemNameSize) =>
_GetVolumeInformation(
lpRootPathName,
lpVolumeNameBuffer,
nVolumeNameSize,
lpVolumeSerialNumber,
lpMaximumComponentLength,
lpFileSystemFlags,
lpFileSystemNameBuffer,
nFileSystemNameSize);