网站首页  词典首页

请输入您要查询的函数:

 

术语 wnetcloseenum
释义 WNetCloseEnum
语法:
C++
DWORD WNetCloseEnum(
__in HANDLE hEnum
);
WNetCloseEnum功能
该WNetCloseEnum函数结束枚举网络资源通过向WNetOpenEnum函数调用开始。
参数
hEnum [in]
处理标识枚举实例。这种处理必须由WNetOpenEnum函数返回。
返回值
如果函数成功,返回值为NO_ERROR。
如果函数失败,返回值是一个系统错误代码,如下列值之一。
返回codeDescription
ERROR_NO_NETWORKThe网络不可用。 (这种情况是测试前处理在hEnum参数指定的有效性进行测试。)
ERROR_INVALID_HANDLEThe hEnum参数不specifiy一个有效的处理。
ERROR_EXTENDED_ERRORA网络特定的错误。要获取该错误的描述,调用WNetGetLastError功能。
实例
有关代码示例,演示应用程序定义的函数枚举所有网络上的资源,请列举网络资源。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinnetwk.h
LibraryMpr.lib
DLLMpr.dll
参见
Windows网络(WNet)概述
Windows网络函数
WNetEnumResource
WNetOpenEnum
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月6日
==英文原文==WNetCloseEnum Function
The WNetCloseEnum function ends a network resource enumeration started by a call to the WNetOpenEnum function.
Syntax
C++
DWORD WNetCloseEnum(
__in HANDLE hEnum
);
Parameters
hEnum [in]
Handle that identifies an enumeration instance. This handle must be returned by the WNetOpenEnum function.
Return Value
If the function succeeds, the return value is NO_ERROR.
If the function fails, the return value is a system error code , such as one of the following values.
Return codeDescription
ERROR_NO_NETWORKThe network is unavailable. (This condition is tested before the handle specified in the hEnum parameter is tested for validity.)
ERROR_INVALID_HANDLEThe hEnum parameter does not specifiy a valid handle.
ERROR_EXTENDED_ERRORA network-specific error occurred. To obtain a description of the error, call the WNetGetLastError function.

Examples
For a code sample that illustrates an application-defined function that enumerates all the resources on a network, see Enumerating Network Resources .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinnetwk.h
LibraryMpr.lib
DLLMpr.dll
See Also
Windows Networking (WNet) Overview
Windows Networking Functions
WNetEnumResource
WNetOpenEnum
Send comments about this topic to Microsoft
Build date: 8/6/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa385431(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 11:28:13