网站首页  词典首页

请输入您要查询的函数:

 

术语 wnetgetnetworkinformation
释义 WNetGetNetworkInformation
语法:
C++
DWORD WNetGetNetworkInformation(
__in LPCTSTR lpProvider,
__out LPNETINFOSTRUCT lpNetInfoStruct
);
WNetGetNetworkInformation功能
函数返回的WNetGetNetworkInformation延长一个特定的网络供应商的名字是由以前的网络枚举返回的信息。
参数
lpProvider [in]
指针常量NULL结尾的字符串,其中包含的网络提供者的信息是必需的名字。
lpNetInfoStruct [out]
指针NETINFOSTRUCT结构。结构描述了网络特性。
返回值
如果函数成功,返回值为NO_ERROR。
如果函数失败,返回值是一个系统错误代码,如下列值之一。
返回codeDescription
ERROR_BAD_PROVIDERThe lpProvider参数不匹配任何正在运行的网络提供商。
ERROR_BAD_VALUEThe的NETINFOSTRUCT结构cbStructure成员不包含有效的架构。
实例
有关代码示例,演示应用程序定义的函数枚举所有网络上的资源,请列举网络资源。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinnetwk.h
LibraryMpr.lib
DLLMpr.dll
Unicode和ANSI namesWNetGetNetworkInformationW(Unicode)和WNetGetNetworkInformationA(ANSI)的
参见
Windows网络(WNet)概述
Windows网络函数
WNetGetProviderName
NETINFOSTRUCT
NETRESOURCE
WNetOpenEnum
WNetEnumResource
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月6日
==英文原文==WNetGetNetworkInformation Function
The WNetGetNetworkInformation function returns extended information about a specific network provider whose name was returned by a previous network enumeration.
Syntax
C++
DWORD WNetGetNetworkInformation(
__in LPCTSTR lpProvider,
__out LPNETINFOSTRUCT lpNetInfoStruct
);
Parameters
lpProvider [in]
Pointer to a constant null-terminated string that contains the name of the network provider for which information is required.
lpNetInfoStruct [out]
Pointer to a NETINFOSTRUCT structure. The structure describes characteristics of the network.
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_BAD_PROVIDERThe lpProvider parameter does not match any running network provider.
ERROR_BAD_VALUEThe cbStructure member of the NETINFOSTRUCT structure does not contain a valid structure size.

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
Unicode and ANSI namesWNetGetNetworkInformationW (Unicode) and WNetGetNetworkInformationA (ANSI)
See Also
Windows Networking (WNet) Overview
Windows Networking Functions
WNetGetProviderName
NETINFOSTRUCT
NETRESOURCE
WNetOpenEnum
WNetEnumResource
Send comments about this topic to Microsoft
Build date: 8/6/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa385461(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:29:28