GetVolumeInformation function kernel32

int GetVolumeInformation(
  1. Pointer<Utf16> lpRootPathName,
  2. Pointer<Utf16> lpVolumeNameBuffer,
  3. int nVolumeNameSize,
  4. Pointer<Uint32> lpVolumeSerialNumber,
  5. Pointer<Uint32> lpMaximumComponentLength,
  6. Pointer<Uint32> lpFileSystemFlags,
  7. Pointer<Utf16> lpFileSystemNameBuffer,
  8. int nFileSystemNameSize,
)

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);