NWSMAddNSToVolume

Adds a specified name space to a mounted volume on a 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 NWSMAddNSToVolume 
    (NWCONN_HANDLE    connHandle,  
     nuint16          volNumber,  
     nuint8           namspc); 
  

Delphi Syntax

  uses calwin32 
   
  Function NWSMAddNSToVolume 
    (connHandle : NWCONN_HANDLE; 
     volNumber : nuint16; 
     namspc : nuint8 
  ) : NWCCODE; 
  

Parameters

connHandle
(IN) Specifies the server connection handle which is being managed.
volNumber
(IN) Specifies the volume number on which the name space will be loaded.
namspc
(IN) Specifies the name space to load on the volume.

Return Values

These are common return values; see Return Values (Return Values for C) for more information.

0x0000

SUCCESS

0x00BF

No add name space string given

0x0205

Unable to add specified name space to a volume

0x8801

INVALID_CONNECTION

0x890A

NLM_INVALID_CONNECTION

0x8998

VOLUME_DOES_NOT_EXIST

0x89FB

ERR_NCP_NOT_SUPPORTED

Remarks

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

namspc values cannot be ORed; they may be added on each call. namspc values follow:

Execute ADD NAME SPACE only once for each non-DOS naming convention you want to store on a volume.

Before you can add a name space to a volume, the volume and the name space module must both be loaded. See the NWSMLoadNLM function.

NCP Calls

See Also

NWSMLoadNLM