网站首页  词典首页

请输入您要查询的函数:

 

术语 wnetconnectiondialog
释义 WNetConnectionDialog
语法:
C++
DWORD WNetConnectionDialog(
__in HWND hwnd,
__in DWORD dwType
);
WNetConnectionDialog功能
该WNetConnectionDialog函数启动一个一般浏览对话框连接到网络资源的框。该函数需要处理的对话框的所有者窗口。
参数
hwnd [in]
句柄对话框的所有者窗口。
dwType [in]
资源类型允许连接。此参数可以是以下值。
ValueMeaning
RESOURCETYPE_DISKConnections到磁盘资源。
返回值
如果函数成功,返回值为NO_ERROR。如果用户取消该对话框,该函数返回-1。
如果函数失败,返回值是一个系统错误代码,如下列值之一。
返回codeDescription
ERROR_EXTENDED_ERRORA网络特定的错误。要获取该错误的描述,调用WNetGetLastError功能。
ERROR_INVALID_PASSWORDThe无效指定的密码。
ERROR_NO_NETWORKThe网络不可用。
ERROR_NOT_ENOUGH_MEMORYThere足够的内存来启动对话框。
备注
如果用户点击该对话框中的确定,所要求的网络连接将已在WNetConnectionDialog函数返回。
如果函数试图建立连接和网络供应商返回消息ERROR_INVALID_PASSWORD,系统提示用户输入密码。该系统采用的又一尝试进行连接的新的密码。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinnetwk.h
LibraryMpr.lib
DLLMpr.dll
参见
Windows网络(WNet)概述
Windows网络函数
WNetAddConnection3
WNetCancelConnection2
WNetDisconnectDialog
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月6日
==英文原文==WNetConnectionDialog Function
The WNetConnectionDialog function starts a general browsing dialog box for connecting to network resources. The function requires a handle to the owner window for the dialog box.
Syntax
C++
DWORD WNetConnectionDialog(
__in HWND hwnd,
__in DWORD dwType
);
Parameters
hwnd [in]
Handle to the owner window for the dialog box.
dwType [in]
Resource type to allow connections to. This parameter can be the following value.
ValueMeaning
RESOURCETYPE_DISKConnections to disk resources.

Return Value
If the function succeeds, the return value is NO_ERROR. If the user cancels the dialog box, the function returns –1.
If the function fails, the return value is a system error code , such as one of the following values.
Return codeDescription
ERROR_EXTENDED_ERRORA network-specific error occurred. To obtain a description of the error, call the WNetGetLastError function.
ERROR_INVALID_PASSWORDThe specified password is invalid.
ERROR_NO_NETWORKThe network is unavailable.
ERROR_NOT_ENOUGH_MEMORYThere is insufficient memory to start the dialog box.

Remarks
If the user clicks OK in the dialog box, the requested network connection will have been made when the WNetConnectionDialog function returns.
If the function attempts to make a connection and the network provider returns the message ERROR_INVALID_PASSWORD, the system prompts the user to enter a password. The system uses the new password in another attempt to make the connection.
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
WNetAddConnection3
WNetCancelConnection2
WNetDisconnectDialog
Send comments about this topic to Microsoft
Build date: 8/6/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa385433(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:16:30