NetReplExportDirEnum

The NetReplExportDirEnum function lists the replicated directories in the export path.

Security Requirements

No special group membership is required to successfully execute NetReplExportDirEnum.

NET_API_STATUS NetReplExportDirEnum(

LPTSTR servername,  
DWORD level,  
LPBYTE *bufptr,  
DWORD prefmaxlen,  
LPDWORD entriesread,  
LPDWORD totalentries,  
LPDWORD resumehandle  
);  

Parameters

servername

Pointer to a null-terminated Unicode string containing the name of the remote server on which the function is to execute. A NULL pointer or string specifies the local computer.

level

Specifies one of the following values to return the level of information provided.

Value Meaning
0 The bufptr parameter points to an array of REPL_EDIR_INFO_0 structures.
1 The bufptr parameter points to an array of REPL_EDIR_INFO_1 structures.
2 The bufptr parameter points to an array of REPL_EDIR_INFO_2 structures.

bufptr

Pointer to the buffer in which the data set with the level parameter is stored.

prefmaxlen

Preferred maximum length, in 8-bit bytes of returned data. A value of 0xFFFFFFFF indicates that all available entries should be returned.

entriesread

Pointer to a DWORD that contains the actual enumerated element count is located in the DWORD pointed to by entriesread.

totalentries

Pointer to a DWORD that contains the total number of entries that could have been enumerated from the current resume position is located in the DWORD pointed to by totalentries.

resumehandle

Pointer to a DWORD that contains resumehandle, which is used to continue an existing use search. The handle should be zero on the first call and left unchanged for subsequent calls. If resumehandle is NULL, no resume handle is stored.

See Also

NetReplExportDirGetInfo