Platform SDK: Network Management

NetReplExportDirDel

The NetReplExportDirDel function removes the registration of an export directory for replication.

Security Requirements

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      
);

Parameters

servername
[in] Pointer to a constant null-terminated Unicode string specifying the name of the remote server on which the function is to execute. The string must begin with \\. If this parameter is NULL, the local computer is used.
dirname
[in] Pointer to a constant null-terminated Unicode string specifying the name of a replicated directory to remove from the registration files.

Return Values

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.

Remarks

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.

Requirements

  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.

See Also

Network Management Overview, Network Management Functions, Replicator Functions, NetReplExportDirAdd