NetReplExportDirLock

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.

Security Requirements

Only members of the Administrators or Account Operators local group can successfully execute NetReplExportDirLock.

NET_API_STATUS NetReplExportDirLock(

LPTSTR servername,  
LPTSTR 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.

See Also

NetReplExportDirUnlock