Platform SDK: Network Management |
The NetDfsRemoveFtRoot function removes the specified server and share from a domain-based Distributed File System (Dfs) root. If the share is the last associated with the Dfs root, the function also deletes the root.
Note This function is currently being evaluated and may or may not be supported in future versions.
Users having permission to update the Dfs container in the directory service can successfully execute the NetDfsRemoveFtRoot function.
NET_API_STATUS NetDfsRemoveFtRoot( LPWSTR ServerName, LPWSTR RootShare, LPWSTR FtDfsName, DWORD Flags );
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.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Lmdfs.h; include Lm.h.
Library: Use Netapi32.lib.
Network Management Overview, Network Management Functions, Distributed File System (Dfs) Functions, NetDfsAddFtRoot, NetDfsRemoveFtRootForced, NetDfsRemove