#include <nwvol.h> or #include <nwcalls.h>NWCCODE N_API NWGetVolumeName (NWCONN_HANDLE conn, nuint16 volNum, pnstr8 volName);
volNum identifies the volume name on the NetWare server's Volume Table. volNum needs to be between 0 and the maximum allowable volumes on the server.
NWGetVolumeName can be called to determine all volume numbers and volume names currently mounted on the specified NetWare server. Start the scan with volume number 0 and scan upwards until
volName[0]=="\0"
indicating the volume is not mounted.
SUCCESSFUL will be returned for each allowable volume number whether or not that volume exists on the specified server. For example, NetWare 3.x and above supports 64 volumes on each server. Calling NWGetVolumeName on each of the 64 volumes will return SUCCESSFUL even though the volume is not mounted.
Volume