网站首页  词典首页

请输入您要查询的函数:

 

术语 netservertransportdel
释义 NetServerTransportDel
语法:
C++
NET_API_STATUS NetServerTransportDel(
__in LPWSTR servername,
__in DWORD level,
__in LPBYTE bufptr
);
NetServerTransportDel功能
该NetServerTransportDel函数取消绑定(或断开)从服务器传输协议。实际上,服务器可以沟通不再使用指定的(如TCP或XNS)传输协议客户端。
参数
服务器名 [in]
指针指向一个字符串,它指定的DNS或NetBIOS的远程服务器上的功能是执行的名称。如果该参数为NULL,则使用本地计算机。
Level [in]
指定的数据信息的Level。此参数可以是下列值之一。
ValueMeaning
0Specifies信息传输协议,包括姓名,地址和网络上的位置。在bufptr参数指向SERVER_TRANSPORT_INFO_0结构。
1Specifies信息传输协议,包括姓名,地址,网络位置和域。在bufptr参数指向SERVER_TRANSPORT_INFO_1结构。
bufptr [in]
缓冲区指针指定的数据。这一数据格式取决于Level的参数值。有关更多信息,请参阅网络管理功能的缓冲器。
返回值
如果函数成功,返回值是NERR_Success。
如果函数失败,返回值可以是下面的错误代码之一。
返回codeDescription
ERROR_ACCESS_DENIEDThe用户没有获得所需的信息。
ERROR_INVALID_LEVELThe价值Level参数指定无效。
ERROR_INVALID_PARAMETERThe指定的参数无效。
ERROR_NOT_ENOUGH_MEMORYInsufficient内存可用。
NERR_NetNameNotFoundThe共享名称不存在。
备注
管理员或服务器操作员本地组的成员才可以成功地执行NetServerTransportDel功能。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderLmserver.h(包括Lm.h)
LibraryNetapi32.lib
DLLNetapi32.dll
参见
网络管理概述
网络管理功能
服务器和工作站运输功能
NetServerTransportAdd
SERVER_TRANSPORT_INFO_0
SERVER_TRANSPORT_INFO_1
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月13日
==英文原文==NetServerTransportDel Function
The NetServerTransportDel function unbinds (or disconnects) the transport protocol from the server. Effectively, the server can no longer communicate with clients using the specified transport protocol (such as TCP or XNS).
Syntax
C++
NET_API_STATUS NetServerTransportDel(
__in LPWSTR servername,
__in DWORD level,
__in LPBYTE bufptr
);
Parameters
servername [in]
Pointer to a string that specifies the DNS or NetBIOS name of the remote server on which the function is to execute. If this parameter is NULL, the local computer is used.
level [in]
Specifies the information level of the data. This parameter can be one of the following values.
ValueMeaning
0Specifies information about the transport protocol, including name, address, and location on the network. The bufptr parameter points to a SERVER_TRANSPORT_INFO_0 structure.
1Specifies information about the transport protocol, including name, address, network location, and domain. The bufptr parameter points to a SERVER_TRANSPORT_INFO_1 structure.

bufptr [in]
Pointer to the buffer that specifies the data. The format of this data depends on the value of the level parameter. For more information, see Network Management Function Buffers .
Return Value
If the function succeeds, the return value is NERR_Success.
If the function fails, the return value can be one of the following error codes.
Return codeDescription
ERROR_ACCESS_DENIEDThe user does not have access to the requested information.
ERROR_INVALID_LEVELThe value specified for the level parameter is invalid.
ERROR_INVALID_PARAMETERThe specified parameter is invalid.
ERROR_NOT_ENOUGH_MEMORYInsufficient memory is available.
NERR_NetNameNotFoundThe share name does not exist.

Remarks
Only members of the Administrators or Server Operators local group can successfully execute the NetServerTransportDel function.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderLmserver.h (include Lm.h)
LibraryNetapi32.lib
DLLNetapi32.dll
See Also
Network Management Overview
Network Management Functions
Server and Workstation Transport Functions
NetServerTransportAdd
SERVER_TRANSPORT_INFO_0
SERVER_TRANSPORT_INFO_1
Send comments about this topic to Microsoft
Build date: 8/13/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa370629(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:21:08