网站首页  词典首页

请输入您要查询的函数:

 

术语 wnetconnectiondialog1
释义 WNetConnectionDialog1
语法:
C++
DWORD WNetConnectionDialog1(
__inout LPCONNECTDLGSTRUCT lpConnDlgStruct
);
WNetConnectionDialog1功能
该WNetConnectionDialog1功能带来了一个用于连接到网络资源的一般浏览对话框。该函数需要一个CONNECTDLGSTRUCT建立对话框参数。
参数
lpConnDlgStruct [ in , out ]
指针CONNECTDLGSTRUCT结构。建立了结构浏览对话框参数。
返回值
如果用户取消该对话框,该函数返回-1。如果函数是成功的,它返回NO_ERROR。此外,如果调用成功,该CONNECTDLGSTRUCT结构dwDevNum成员包含连接的设备数量。
一般来说,这个对话框返回一个错误只有当用户无法进入对话会议。这是因为错误后会出现一个对话框,据报道,用户直接。如果函数失败,返回值是一个系统错误代码,如下列值之一。
返回codeDescription
ERROR_INVALID_PARAMETERBoth的CONNDLG_RO_PATH和CONNDLG_USE_MRU对话框中的选项设置。 (对话框中的选项指定由CONNECTDLGSTRUCT结构的dwFlags成员。)
或-
无论是CONNDLG_PERSIST和CONNDLG_NOT_PERSIST对话框中的选项设置。
或-
在CONNDLG_RO_PATH对话框中的选项设置和NETRESOURCE结构lpRemoteName成员不指向远程网络。 (在CONNECTDLGSTRUCT结构指向一个NETRESOURCE结构。)
ERROR_BAD_DEV_TYPEThe的NETRESOURCE结构却提示成员未设置为RESOURCETYPE_DISK。
ERROR_BUSYThe网络提供商忙碌(可能初始化)。打电话者应该重试。
ERROR_NO_NETWORKThe网络不可用。
ERROR_NOT_ENOUGH_MEMORYThere足够的内存来显示该对话框。
ERROR_EXTENDED_ERRORA网络特定的错误。呼叫WNetGetLastError获得错误的描述。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinnetwk.h
LibraryMpr.lib
DLLMpr.dll
Unicode和ANSI namesWNetConnectionDialog1W(Unicode)和WNetConnectionDialog1A(ANSI)的
参见
Windows网络(WNet)概述
Windows网络函数
CONNECTDLGSTRUCT
NETRESOURCE
WNetConnectionDialog
WNetDisconnectDialog
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月6日
==英文原文==WNetConnectionDialog1 Function
The WNetConnectionDialog1 function brings up a general browsing dialog for connecting to network resources. The function requires a CONNECTDLGSTRUCT to establish the dialog box parameters.
Syntax
C++
DWORD WNetConnectionDialog1(
__inout LPCONNECTDLGSTRUCT lpConnDlgStruct
);
Parameters
lpConnDlgStruct [in, out]
Pointer to a CONNECTDLGSTRUCT structure. The structure establishes the browsing dialog parameters.
Return Value
If the user cancels the dialog box, the function returns –1. If the function is successful, it returns NO_ERROR. Also, if the call is successful, the dwDevNum member of the CONNECTDLGSTRUCT structure contains the number of the connected device.
Typically this dialog returns an error only if the user cannot enter a dialog session. This is because errors that occur after a dialog session are reported to the user directly. If the function fails, the return value is a system error code , such as one of the following values.
Return codeDescription
ERROR_INVALID_PARAMETERBoth the CONNDLG_RO_PATH and the CONNDLG_USE_MRU dialog box options are set. (Dialog box options are specified by the dwFlags member of the CONNECTDLGSTRUCT structure.)
-or-
Both the CONNDLG_PERSIST and the CONNDLG_NOT_PERSIST dialog box options are set.
-or-
The CONNDLG_RO_PATH dialog box option is set and the lpRemoteName member of the NETRESOURCE structure does not point to a remote network. (The CONNECTDLGSTRUCT structure points to a NETRESOURCE structure.)
ERROR_BAD_DEV_TYPEThe dwType member of the NETRESOURCE structure is not set to RESOURCETYPE_DISK.
ERROR_BUSYThe network provider is busy (possibly initializing). The caller should retry.
ERROR_NO_NETWORKThe network is unavailable.
ERROR_NOT_ENOUGH_MEMORYThere is insufficient memory to display the dialog box.
ERROR_EXTENDED_ERRORA network-specific error occurred. Call WNetGetLastError to obtain a description of the error.

Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinnetwk.h
LibraryMpr.lib
DLLMpr.dll
Unicode and ANSI namesWNetConnectionDialog1W (Unicode) and WNetConnectionDialog1A (ANSI)
See Also
Windows Networking (WNet) Overview
Windows Networking Functions
CONNECTDLGSTRUCT
NETRESOURCE
WNetConnectionDialog
WNetDisconnectDialog
Send comments about this topic to Microsoft
Build date: 8/6/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa385436(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:12