Group: File System - Library: kernel32
BOOL SetVolumeLabel(
LPCTSTR lpRootPathName, // name of volume root directory
LPCTSTR lpVolumeName // name for the volume
);
DECLARE INTEGER SetVolumeLabel IN kernel32;
STRING lpRootPathName,;
STRING lpVolumeName
lpRootPathName [in] Pointer to a null-terminated string specifying the root directory of a file system volume.
lpVolumeName [in] Pointer to a string specifying a name for the volume.
If the function succeeds, the return value is nonzero.
There is no GetVolumeLabel API function. Function GetVolumeInformation retrieves information about a file system and volume whose root directory is specified.