GetNameSpaceName

Returns the name of a specified name space and the number of name spaces currently supported by NetWare

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

Syntax

   #include <nwnspace.h>  
    
   int GetNameSpaceName  (  
      int     volume,   
      LONG    nameSpace,   
      char   *name,   
      int    *numberOfNameSpace); 
   

Parameters

volume

(IN) Specifies the volume for which name space information is desired.

nameSpace

(IN) Specifies the number of the name space whose name is desired (see Section 20.5, Name Space Flag Values).

name

(OUT) Points to the name of the name space in ASCIIZ string (buffer length should be 32 bytes).

numberOfNameSpace

(OUT) Points to the number of name spaces currently supported by NetWare.

Return Values

-1

Specified name space does not exist.

0

Name space driver is not loaded.

1

Name space driver is loaded but is not supported on the specified volume.

2

Name space driver is loaded and supported on the specified volume.

Remarks

The five name spaces that are currently available are:

0

DOS

1

MACINTOSH

2

NFS

3

FTAM

4

LONG

5

NT

NOTE:For NSS volumes, GetNameSpaceName returns 2 (name space loaded and supported) for only the DOS and LONG name spaces. For the NFS and MAC name spaces, it just returns 1 (name space is loaded but not supported) on NSS volumes. These results conflict with the name space information displayed by the VOLUMES command. For the correct information on NSS volumes, please use the NWGetNSLoadedList (NLM) function.

See Also

FEGetOriginatingNameSpace, SetCurrentNameSpace, SetTargetNameSpace