Platform SDK: Network Management |
The NetReplImportDirAdd function registers an existing directory in the import path to receive replication from a master.
Only members of the Administrators local group or the Replicator group can successfully execute the NetReplImportDirAdd function.
NET_API_STATUS NetReplImportDirAdd( LPCWSTR servername, DWORD level, const LPBYTE buf, LPDWORD parm_err );
Value | Meaning |
---|---|
0 | Specifies an import subdirectory name. The buf parameter points to a REPL_IDIR_INFO_0 structure. |
If the function succeeds, the return value is NERR_Success.
If the function fails, the return value is a Win32 API error code. For a list of error codes, see Error Codes.
The NetReplImportDirAdd function cannot create a directory.
A client directory can be registered for replication in one of the following ways:
Windows NT/2000: Requires Windows NT 4.0 or earlier.
Windows 95/98: Unsupported.
Header: Declared in Lmrepl.h; include Lm.h.
Library: Use Netapi32.lib.
Network Management Overview, Network Management Functions, Replicator Functions, NetReplImportDirDel, REPL_IDIR_INFO_0