NDSGetReplicaPartitionNames

Returns a list of the replicas stored on the server.

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

Syntax

    #include <ndsback.h> 
     
    int NDSGetReplicaPartitionNames  ( 
      void              *(*memAlloc)(unsigned size),   
      void               (*memFree)(void *p),   
      unsigned long        nameForm,   
      int               *count,   
      NAMEID_TYPE     ***replicaNames);
    

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.
nameForm
(IN) Specifies whether the replica names are typeless or typed (0 = typed and 1 = typeless).
count
(OUT) Points to an integer that specifies the number of replica structures stored in the replicaNames array.
replicaNames
(OUT) Points to an array of pointers to NAMEID_TYPE structures.

Return Values

0x0000

SUCCESSFUL

Nonzero

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

Remarks

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

Before information can be restore with the NDSSYSVolumeRecovery function, the server needs to be removed from all replica lists. Use this function to obtain the replica information.

Use the NDSFreeNameList function to clean up the list when you are done with it.

NCP Calls

See Also

NDSFreeNameList