网站首页  词典首页

请输入您要查询的函数:

 

术语 wnetdisconnectdialog
释义 WNetDisconnectDialog
语法:
C++
DWORD WNetDisconnectDialog(
__in HWND hwnd,
__in DWORD dwType
);
WNetDisconnectDialog功能
该WNetDisconnectDialog函数启动一个一般浏览对话框断开从网络资源中。该函数需要处理的对话框的所有者窗口。
参数
hwnd [in]
句柄对话框的所有者窗口。
dwType [in]
资源类型断开。此参数可以有以下值。
ValueMeaning
RESOURCETYPE_DISKDisconnects从磁盘资源。
返回值
如果函数成功,返回值为NO_ERROR。如果用户取消该对话框,返回值是-1。
如果函数失败,返回值是一个系统错误代码,如下列值之一。
返回codeDescription
ERROR_EXTENDED_ERRORA网络特定的错误。要获取该错误的描述,调用WNetGetLastError功能。
ERROR_NO_NETWORKThe网络不可用。
ERROR_NOT_ENOUGH_MEMORYThere足够的内存来启动对话框。
备注
如果用户选择的对话框中的确定,要求将网络断开时,已在WNetDisconnectDialog函数返回。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinnetwk.h
LibraryMpr.lib
DLLMpr.dll
参见
Windows网络(WNet)概述
Windows网络函数
WNetAddConnection2
WNetCancelConnection2
WNetConnectionDialog
WNetConnectionDialog1
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月6日
==英文原文==WNetDisconnectDialog Function
The WNetDisconnectDialog function starts a general browsing dialog box for disconnecting from network resources. The function requires a handle to the owner window for the dialog box.
Syntax
C++
DWORD WNetDisconnectDialog(
__in HWND hwnd,
__in DWORD dwType
);
Parameters
hwnd [in]
Handle to the owner window for the dialog box.
dwType [in]
Resource type to disconnect from. This parameter can have the following value.
ValueMeaning
RESOURCETYPE_DISKDisconnects from disk resources.

Return Value
If the function succeeds, the return value is NO_ERROR. If the user cancels the dialog box, the return value is –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_NO_NETWORKThe network is unavailable.
ERROR_NOT_ENOUGH_MEMORYThere is insufficient memory to start the dialog box.

Remarks
If the user chooses OK in the dialog box, the requested network disconnection will have been made when the WNetDisconnectDialog function returns.
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
WNetAddConnection2
WNetCancelConnection2
WNetConnectionDialog
WNetConnectionDialog1
Send comments about this topic to Microsoft
Build date: 8/6/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa385440(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:23:24