Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.18 KB

SetVolumeLabel.md

File metadata and controls

52 lines (35 loc) · 1.18 KB

Home

Function name : SetVolumeLabel

Group: File System - Library: kernel32


The SetVolumeLabel function sets the label of a file system volume.


Code examples:

Setting the volume label

Declaration:

BOOL SetVolumeLabel(
  LPCTSTR lpRootPathName,  // name of volume root directory
  LPCTSTR lpVolumeName     // name for the volume
);  

FoxPro declaration:

DECLARE INTEGER SetVolumeLabel IN kernel32;
	STRING lpRootPathName,;
	STRING lpVolumeName  

Parameters:

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.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

There is no GetVolumeLabel API function. Function GetVolumeInformation retrieves information about a file system and volume whose root directory is specified.