WORD LFNGetVolumeLabel(iDrive, lpLabel) | |||
WORD iDrive; | |||
LPSTR lpLabel; |
The LFNGetVolumeLabel function returns the volume label of the drive specified by the iDrive parameter.
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.
The return value is one of the following values.
Value | Meaning |
0 | Success. |
1 | Invalid function. |
2 | File not found. |
5 | Access denied. |
The export ordinal for this function is 110.