SetCurrentNameSpace

Sets the name space that is to be used for parsing paths that are input to server functions

Local Servers:blocking
Remote Servers:N/A
NetWare Server:3.x, 4.x, 5.x, 6.x
Platform:NLM
Service:Name Space

Syntax

   #include <nwnamspc.h>  
    
   BYTE SetCurrentNameSpace  (  
      BYTE   newNameSpace);
   

Parameters

newNameSpace

(IN) Specifies the new name space (see Section 20.5, Name Space Flag Values).

Return Values

Returns the old name space if successful. If the specified name space is not valid or is not supported on the current working volume (CWV) and current working directory (CWD), returns error code 255 and NWErrno is set to ERR_INVALID_PATH.

Remarks

SetCurrentNameSpace sets the name space to be used by the current thread group for parsing paths. This name space is used by this thread group for paths input to subsequent calls to functions from the NetWare API (until changed by another call to this function).

SetTargetNameSpace sets the name space for output from subsequent calls to functions from the NetWare API.

If you change the current name space to a non-DOS name space, CLIB will uppercase the names of newly created files and directories by default. To modify this behavior, call UseAccurateCaseForPaths.

See Also

FEGetOriginatingNameSpace, GetNameSpaceName, SetTargetNameSpace, UseAccurateCaseForPaths

Example

   #include <nwnspace.h>  
   BYTE oldNameSpace;  
   BYTE newNameSpace;  
   
   oldNameSpace=SetCurrentNameSpace(newNameSpace);