NetReplImportDirLock

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.

Security Requirements

Only the Administrators local group or replicator group membership is required to successfully execute NetReplImportDirLock.

NET_API_STATUS NetReplImportDirLock(
  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 directory name to lock.

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, NetReplImportDirUnlock