Platform SDK: Network Management |
The NetReplExportDirDel function removes the registration of an export directory for replication.
Only members of the Administrators local group or the Account Operators local group can successfully execute the NetReplExportDirDel function.
NET_API_STATUS NetReplExportDirDel( LPCWSTR servername, LPCWSTR dirname );
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 NetReplExportDirDel function removes the registration of an export directory for replication. To lock a directory so that replication from it can be suspended, you can call the NetReplExportDirLock function.
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, NetReplExportDirAdd