NetReplImportDirDel

The NetReplImportDirDel function removes the registration of a directory so that it no longer receives updates from the master. Note that this function does not actually delete the directory from the file system. The Replicator service can automatically register the directory service at any time. To prevent the importing of a directory that is being exported by some Replicator service, use the NetReplImportDirLock function instead.

Security Requirements

Only members of the Administrators local group or Replicator groups can successfully execute NetReplImportDirDel.

NET_API_STATUS NetReplImportDirDel(
  LPWSTR servername,  
  LPWSTR dirname      
);
 

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.
dirname
Pointer to a null-terminated Unicode string containing the name of a replicated directory to remove the registration.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in lmrepl.h.
  Import Library: Use netapi32.lib.

See Also

Networking (Net) Overview, Net Functions, NetReplImportDirAdd