网站首页  词典首页

请输入您要查询的函数:

 

术语 netusedel
释义 NetUseDel
语法:
C++
NET_API_STATUS NetUseDel(
__in LMSTR UncServerName,
__in LMSTR UseName,
__in DWORD ForceCond
);
NetUseDel功能
函数结束的NetUseDel连接到一个共享资源。
You can also use the WNetCancelConnection2 function to terminate a network connection.
参数
UncServerName [in]
在计算机上执行此功能的UNC名称。如果这是参数为NULL,则使用本地计算机。如果UncServerName参数指定远程计算机,然后在远程计算机必须支持远程RPC调用使用传统的远程访问协议的机制。
这个字符串是Unicode或FORCE_UNICODE如果_WIN32_WINNT定义。
用户名 [in]
一个字符串,它指定了连接路径删除指针。
这个字符串是Unicode或FORCE_UNICODE如果_WIN32_WINNT定义。
ForceCond [in]
武力Level,使用删除连接。此参数可以是下列值之一。
ValueMeaning
USE_NOFORCEDo不辜负如果打开的文件断开连接上存在。
USE_FORCEFail的脱节,如果打开的文件的连接存在。
USE_LOTS_OF_FORCEClose所有打开的文件并删除连接。
返回值
如果函数成功,返回值是NERR_Success。
如果函数失败,返回值是一个系统错误代码。对于一个错误代码的列表,请参见系统错误代码。
备注
没有特殊组成员必须调用NetUseDel功能。此函数不能执行远程服务器上的除外下级兼容的情况。
此功能仅适用于服务器消息块(LAN管理工作站)客户端。该NetUseDel函数不支持分布式文件系统(DFS)的股票。要终止连接到一个共享使用不同的网络提供商控制(WebDAV或DFS共享,例如),使用WNetCancelConnection2功能。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderLmuse.h(包括Lm.h)
LibraryNetapi32.lib
DLLNetapi32.dll
参见
NetUseAdd
网络管理概述
网络管理功能
使用功能
WNetCancelConnection2
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月13日
==英文原文==NetUseDel Function
The NetUseDel function ends a connection to a shared resource.
You can also use the WNetCancelConnection2 function to terminate a network connection.
Syntax
C++
NET_API_STATUS NetUseDel(
__in LMSTR UncServerName,
__in LMSTR UseName,
__in DWORD ForceCond
);
Parameters
UncServerName [in]
The UNC name of the computer on which to execute this function. If this is parameter is NULL, then the local computer is used. If the UncServerName parameter specified is a remote computer, then the remote computer must support remote RPC calls using the legacy Remote Access Protocol mechanism.
This string is Unicode if _WIN32_WINNT or FORCE_UNICODE are defined.
UseName [in]
A pointer to a string that specifies the path of the connection to delete.
This string is Unicode if _WIN32_WINNT or FORCE_UNICODE are defined.
ForceCond [in]
The level of force to use in deleting the connection. This parameter can be one of the following values.
ValueMeaning
USE_NOFORCEDo not fail the disconnection if open files exist on the connection.
USE_FORCEFail the disconnection if open files exist on the connection.
USE_LOTS_OF_FORCEClose any open files and delete the connection.

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
No special group membership is required to call the NetUseDel function. This function cannot be executed on a remote server except in cases of downlevel compatibility.
This function applies only to the Server Message Block (LAN Manager Workstation) client. The NetUseDel function does not support Distributed File System (DFS) shares. To terminate a connection to a share using a different network provider (WebDAV or a DFS share, for example), use the WNetCancelConnection2 function.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderLmuse.h (include Lm.h)
LibraryNetapi32.lib
DLLNetapi32.dll
See Also
NetUseAdd
Network Management Overview
Network Management Functions
Use Functions
WNetCancelConnection2
Send comments about this topic to Microsoft
Build date: 8/13/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa370646(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:23:31