GetVolumeNameForVolumeMountPoint function kernel32

int GetVolumeNameForVolumeMountPoint(
  1. Pointer<Utf16> lpszVolumeMountPoint,
  2. Pointer<Utf16> lpszVolumeName,
  3. int cchBufferLength
)

Retrieves a volume GUID path for the volume that is associated with the specified volume mount point (drive letter, volume GUID path, or mounted folder).

BOOL GetVolumeNameForVolumeMountPointW(
  [in]  LPCWSTR lpszVolumeMountPoint,
  [out] LPWSTR  lpszVolumeName,
  [in]  DWORD   cchBufferLength
);

Implementation

int GetVolumeNameForVolumeMountPoint(Pointer<Utf16> lpszVolumeMountPoint,
        Pointer<Utf16> lpszVolumeName, int cchBufferLength) =>
    _GetVolumeNameForVolumeMountPoint(
        lpszVolumeMountPoint, lpszVolumeName, cchBufferLength);