The NetReplExportDirLock function locks a replicated directory so that replication from it can be suspended. This function increments the lock reference count for the specified directory.
Only members of the Administrators or Account Operators local group can successfully execute NetReplExportDirLock.
NET_API_STATUS NetReplExportDirLock(
LPWSTR servername,
LPWSTR dirname
);
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, NetReplExportDirUnlock