网站首页  词典首页

请输入您要查询的函数:

 

术语 netdfsaddftroot
释义 NetDfsAddFtRoot
语法:
C++
NET_API_STATUS NetDfsAddFtRoot(
__in LPWSTR ServerName,
__in LPWSTR RootShare,
__in LPWSTR FtDfsName,
__in_opt LPWSTR Comment,
__in DWORD Flags
);
NetDfsAddFtRoot功能
创建一个新的基于域的分布式文件系统(DFS)命名空间。如果命名空间已经存在,函数将指定的目标,它的根。
参数
服务器名 [in]
一个字符串指针,指定的服务器将承载新的DFS根目标名称。该值不能是一个IP地址。此参数是必需的。
RootShare [in]
一个字符串指针,指定的服务器上,将举办新的DFS根目标共享文件夹的名称。此参数是必需的。
FtDfsName [in]
一个字符串指针,指定新的或现有的域名的DFS名称空间。此参数是必需的。出于兼容性原因,它应指定为RootShare参数相同的字符串。
评论[中,可选]
指针指向一个字符串,其中包含一个可选的注释与DFS名称空间相关联。
标志 [in]
这个参数是保留,必须为零。
返回值
如果函数成功,返回值是NERR_Success。
如果函数失败,返回值是一个系统错误代码。对于一个错误代码的列表,请参见系统错误代码。
备注
由RootShare参数指定的股票必须已经存在于服务器将承载新的DFS根目标。此函数不创建一个新的共享。
调用者必须具有更新的目录服务的DFS容器,必须在DFS主机(根)服务器的管理员特权。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderLmDfs.h(包括LmDfs.h或Lm.h)
LibraryNetapi32.lib
DLLNetapi32.dll
参见
网络管理概述
网络管理功能
分布式文件系统(DFS)功能
NetDfsAddRootTarget
NetDfsAddStdRoot
NetDfsRemoveFtRoot
NetDfsAdd
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==NetDfsAddFtRoot Function
Creates a new domain-based Distributed File System (DFS) namespace. If the namespace already exists, the function adds the specified root target to it.
Syntax
C++
NET_API_STATUS NetDfsAddFtRoot(
__in LPWSTR ServerName,
__in LPWSTR RootShare,
__in LPWSTR FtDfsName,
__in_opt LPWSTR Comment,
__in DWORD Flags
);
Parameters
ServerName [in]
Pointer to a string that specifies the name of the server that will host the new DFS root target. This value cannot be an IP address. This parameter is required.
RootShare [in]
Pointer to a string that specifies the name of the shared folder on the server that will host the new DFS root target. This parameter is required.
FtDfsName [in]
Pointer to a string that specifies the name of the new or existing domain-based DFS namespace. This parameter is required. For compatibility reasons, it should specify the same string as the RootShare parameter.
Comment [in, optional]
Pointer to a string that contains an optional comment associated with the DFS namespace.
Flags [in]
This parameter is reserved and 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 share specified by the RootShare parameter must already exist on the server that will host the new DFS root target. This function does not create a new share.
The caller must have permission to update the DFS container in the directory service and must have Administrator privilege on the DFS host (root) server.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderLmDfs.h (include LmDfs.h or Lm.h)
LibraryNetapi32.lib
DLLNetapi32.dll
See Also
Network Management Overview
Network Management Functions
Distributed File System (DFS) Functions
NetDfsAddRootTarget
NetDfsAddStdRoot
NetDfsRemoveFtRoot
NetDfsAdd
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/bb524806(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:25:47