GetVolumeNameForVolumeMountPoint function kernel32
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);