NetDfsRemoveStdRoot function (lmdfs.h)
Deletes a stand-alone Distributed File System (DFS) namespace.
Syntax
NET_API_STATUS NET_API_FUNCTION NetDfsRemoveStdRoot(
[in] LPWSTR ServerName,
[in] LPWSTR RootShare,
[in] DWORD Flags
);
Parameters
[in] ServerName
Pointer to a string that specifies the DFS root target server name of the stand-alone DFS namespace to be removed. This parameter is required.
[in] RootShare
Pointer to a string that specifies the DFS root target share name of the stand-alone DFS namespace to be removed. This parameter is required.
[in] Flags
Must be zero.
Return value
If the function succeeds, the return value is NERR_Success.
If the function fails, the return value is a system error code. For a list of error codes, see System Error Codes.
Remarks
The caller must have Administrator privilege on the DFS server. For more information about calling functions that require administrator privileges, see Running with Special Privileges.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | lmdfs.h (include LmDfs.h, Lm.h) |
Library | Netapi32.lib |
DLL | Netapi32.dll |