NWSMMountVolume

Mounts a volume on a selected server

NetWare Server:3.x, 4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98
Library:Cross-Platform NetWare Calls (CAL*.*)
Service:Server Management

Syntax

  #include <nwsm.h> 
  or 
  #include <nwcalls.h> 
   
  N_EXTERN_LIBRARY NWCCODE NWSMMountVolume (
     NWCONN_HANDLE        connHandle,  
     const nstr8 N_FAR   *volumeName,  
     pnuint32             volumeNumber);
  

Delphi Syntax

  uses calwin32 
   
  Function NWSMMountVolume 
    (connHandle : NWCONN_HANDLE; 
     volumeName : pnstr8; 
     volumeNumber : pnuint32 
  ) : NWCCODE; 
  

Parameters

connHandle
(IN) Specifies the server connection handle which is being managed.
volumeName
(IN) Points to the name of the NetWare volume to mount (must be NULL terminated).
volumeNumber
(OUT) Points to the number of the volume.

Return Values

These are common return values; see Return Values (NDK: Connection, Message, and NCP Extensions) for more information.

0x0000

SUCCESS

0x00BF

Invalid volumeName string passed

0x0203

VOLUME_ALREADY_MOUNTED

0x8801

INVALID_CONNECTION

0x890A

NLM_INVALID_CONNECTION

0x89FB

ERR_NCP_NOT_SUPPORTED

0x8998

VOLUME_DOES_NOT_EXIST

Remarks

You must be logged into connHandle, be permanently authenticated, and have console operator rights at the minimum to call NWSMMountVolume.

If upon mounting a volume, an error occurs, and if the set parameters are such that VREPAIR will automatically execute, VREPAIR will execute and NWSMMountVolume will not return until VREPAIR has completed. The volume is then mounted.

NCP Calls

See Also

NWSMDismountVolumeByName, NWSMDismountVolumeByNumber