网站首页  词典首页

请输入您要查询的函数:

 

术语 wnetgetprovidername
释义 WNetGetProviderName
语法:
C++
DWORD WNetGetProviderName(
__in DWORD dwNetType,
__out LPTSTR lpProviderName,
__inout LPDWORD lpBufferSize
);
WNetGetProviderName功能
该WNetGetProviderName函数获得一个特定类型的网络提供者的名称。
参数
dwNetType [in]
网络类型是独一无二的网络。如果两个网络称,同一类型,函数返回供应商的名称先加载。只有网络类型高位字被使用。如果网络报道,在低位字亚型,它将被忽略。
您可以找到在头文件中的网络类型Winnetwk.h完整清单。
lpProviderName [out]
指向一个缓冲区,它接收网络提供程序名称。
lpBufferSize [ in , out ]
大小传递给函数的缓冲区,以字符。如果返回值是ERROR_MORE_DATA,缓冲区大小所需的字符(lpBufferSize返回)举行的供应商名称。
Windows 95/98中:在缓冲区的大小是以字节,而不是字符。此外,缓冲区必须至少为1字节长。
返回值
如果函数成功,返回值为NO_ERROR。
如果函数失败,返回值是一个系统错误代码,如下列值之一。
返回codeDescription
ERROR_MORE_DATAThe缓冲区太小举行网络提供程序名称。
ERROR_NO_NETWORKThe网络不可用。
ERROR_INVALID_ADDRESSThe lpProviderName参数或lpBufferSize参数无效。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinnetwk.h
LibraryMpr.lib
DLLMpr.dll
Unicode和ANSI namesWNetGetProviderNameW(Unicode)和WNetGetProviderNameA(ANSI)的
参见
Windows网络(WNet)概述
Windows网络函数
WNetGetResourceInformation
WNetGetNetworkInformation
WNetGetUniversalName
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月6日
==英文原文==WNetGetProviderName Function
The WNetGetProviderName function obtains the provider name for a specific type of network.
Syntax
C++
DWORD WNetGetProviderName(
__in DWORD dwNetType,
__out LPTSTR lpProviderName,
__inout LPDWORD lpBufferSize
);
Parameters
dwNetType [in]
Network type that is unique to the network. If two networks claim the same type, the function returns the name of the provider loaded first. Only the high word of the network type is used. If a network reports a subtype in the low word, it is ignored.
You can find a complete list of network types in the header file Winnetwk.h.
lpProviderName [out]
Pointer to a buffer that receives the network provider name.
lpBufferSize [in, out]
Size of the buffer passed to the function, in characters. If the return value is ERROR_MORE_DATA, lpBufferSize returns the buffer size required (in characters) to hold the provider name.
Windows Me/98/95: The size of the buffer is in bytes, not characters. Also, the buffer must be at least 1 byte long.
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_MORE_DATAThe buffer is too small to hold the network provider name.
ERROR_NO_NETWORKThe network is unavailable.
ERROR_INVALID_ADDRESSThe lpProviderName parameter or the lpBufferSize parameter is invalid.

Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinnetwk.h
LibraryMpr.lib
DLLMpr.dll
Unicode and ANSI namesWNetGetProviderNameW (Unicode) and WNetGetProviderNameA (ANSI)
See Also
Windows Networking (WNet) Overview
Windows Networking Functions
WNetGetResourceInformation
WNetGetNetworkInformation
WNetGetUniversalName
Send comments about this topic to Microsoft
Build date: 8/6/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa385464(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:24:46