NDSIsOnlyServerInTree

Determines whether the eDirectory tree contains more than one server.

NetWare Server:4.x, 5.x, 6.x
Platform:NLM
Service:NDS

Syntax

    #include <ndsback.h> 
     
    int NDSIsOnlyServerInTree  ( 
      void   *(*memAlloc)(unsigned size),   
      void    (*memFree)(void *p),    
      int    *onlyServer);
    

Parameters

memAlloc
(IN) Points to the address of the function to use to allocate memory.
memFree
(IN) Points to the address of the function to use to free memory allocated with the memAlloc parameter.
onlyServer
(OUT) Points to a value that specifies whether the eDirectory tree has more than one server (0 = more than one server; 1 = only one server).

Return Values

0x0000

SUCCESSFUL

Nonzero

Nonzero values indicate errors. See NDS Return Values (001 to 799).

Remarks

This function is an exported symbol from the DSBACKER NLM. To use it, you will need to create an import file.

To prevent user error, call this function before using the NDSBackUpServerData function to verify that the eDirectory tree contains more than one server. The NDSBackUpServerData function requires that an eDirectory tree contain two or more servers.

NCP Calls

See Also

NDSBackupServerData