The NetReplExportDirAdd function registers an existing directory in the export path to be replicated.
Security Requirements
Only members of the Administrators local group or members of the Account Operators local group can successfully execute NetReplExportDirAdd.
NET_API_STATUS NetReplExportDirAdd(
LPTSTR servername, | |
DWORD level, | |
LPBYTE buf, | |
LPDWORD parm_err | |
); |
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 the following value to set the level of information provided.
Value | Meaning |
1 | The buf parameter points to an array of REPL_EDIR_INFO_1 structures. |
buf
Pointer to the buffer in which the data set with the level parameter is stored.
parm_err
Optional pointer to a DWORD that contains the index of the first parameter that causes ERROR_INVALID_PARAMETER. If NULL the parameter is not returned on error.
Remarks
The default values for locktime and lockcount are both 0.
See Also