LFNGetVolumeLabel

  WORD LFNGetVolumeLabel(iDrive, lpLabel)    
  WORD iDrive;    
  LPSTR lpLabel;    

The LFNGetVolumeLabel function returns the volume label of the drive specified by the iDrive parameter.

Parameters

iDrive

Specifies a one-based drive number. The parameter is 1 for drive A, 2 for drive B, and so on.

lpLabel

Points to the buffer that receives the volume label. The buffer length must be at least 12 bytes.

Return Value

The return value is one of the following values.

Value Meaning

0 Success.
1 Invalid function.
2 File not found.
5 Access denied.

Comments

The export ordinal for this function is 110.

See Also

LFNSetVolumeLabel