The NetReplExportDirAdd function registers an existing directory in the export path to be replicated.
Only members of the Administrators local group or members of the Account Operators local group can successfully execute NetReplExportDirAdd.
NET_API_STATUS NetReplExportDirAdd(
LPWSTR servername,
DWORD level,
LPBYTE buf,
LPDWORD parm_err
);
Value | Meaning |
---|---|
1 | The buf parameter points to an array of REPL_EDIR_INFO_1 structures. |
The default values for locktime and lockcount are both 0.
Windows NT: Requires version 3.1 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in lmrepl.h.
Import Library: Use netapi32.lib.
Networking (Net) Overview, Net Functions, NetReplExportDirDel, REPL_EDIR_INFO_1