The NetReplImportDirLock function locks a replicated directory so that replication to it can be suspended. This function increments the lock reference count for the specified directory.
Only the Administrators local group or replicator group membership is required to successfully execute NetReplImportDirLock.
NET_API_STATUS NetReplImportDirLock(
LPTSTR servername, | |
LPTSTR dirname | |
); |