The NetReplImportDirAdd function registers an existing directory in the import path to receive replication from a master.
Security Requirements
Only members of the Administrators or Replicator group can successfully execute NetReplImportDirAdd.
NET_API_STATUS NetReplImportDirAdd(
| 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 |
| 0 | The buf parameter points to an array of REPL_IDIR_INFO_0 structures. |
buf
Pointer to a buffer in which data set with the level parameter is stored.
parm_err
Optional pointer to a DWORD that contains an index to the first parameter that caused ERROR_INVALID_PARAMETER. If NULL, the parameter is not returned on error.
See Also