GetVolumeInfoWithNumber
Returns information about a volume by volume number
#include <nwdir.h>
int GetVolumeInfoWithNumber (
BYTE volumeNumber,
char *volumeName,
WORD *totalBlocks,
WORD *sectorsPerBlock,
WORD *availableBlocks,
WORD *totalDirectorySlots,
WORD *availableDirectorySlots,
WORD *volumeIsRemovable);
The GetVolumeInfoWithNumber function returns information about a volume by passing a volume number. The volumeNumber identifies the volume in the server’s Volume Table. The Volume Table contains information about each volume on the server. A server running NetWare 3.1 or above can accommodate up to 64 volumes.
The volumeName parameter must be 16 bytes long. A volume name can be from 2 to 15 characters long plus the NULL terminator and cannot include spaces or the following characters:
The sectorsPerBlock parameter shows the number of 512-byte sectors contained in each block of the specified volume.
The totalDirectorySlots parameter shows the number of total directory slots available (NetWare 3.x and 4.x) or allocated (in the case of NetWare 2.x).
NOTE:This function requires console operator rights for NetWare 2.x, but not 3.x or 4.x. Therefore, if you call this function remotely on a NetWare 2.x server, you must have console operator rights.