GetVolumeName
Returns a volume name for a volume
#include <nwdir.h>
int GetVolumeName (
int volumeNumber,
char *volumeName);
The volumeNumber identifies the volume on the server’s Volume Table, which contains information about each volume on the server.
If a volume is mounted in the referenced slot in the Volume Table, its name is returned in the volumeName parameter. If a volume is not mounted in that slot, the output parameter volumeName is NULL.
ESUCCESS is returned when the volumeNumber is valid, even if the volume is not mounted. In that case, you need to test for volumeName being valid.
An error is returned when an invalid volumeNumber is passed in.