网站首页  词典首页

请输入您要查询的函数:

 

术语 wnetdisconnectdialog1
释义 WNetDisconnectDialog1
语法:
C++
DWORD WNetDisconnectDialog1(
__in LPDISCDLGSTRUCT lpConnDlgStruct
);
WNetDisconnectDialog1功能
该WNetDisconnectDialog1函数试图断开网络资源。如果基础网络返回ERROR_OPEN_FILES,功能提示用户进行确认。如果有任何错误,函数通知用户。该函数需要一个DISCDLGSTRUCT指定为断开尝试的参数。
参数
lpConnDlgStruct [in]
指针DISCDLGSTRUCT结构。该结构指定了断开企图的行为。
返回值
如果函数成功,返回值为NO_ERROR。如果用户取消该对话框,返回值是-1。
如果函数失败,返回值是一个系统错误代码,如下列值之一。
返回codeDescription
ERROR_CANCELLEDWhen系统提示的决定,关于断开用户,用户选择不断开。
ERROR_OPEN_FILESUnable断开,因为用户是积极利用连接。
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 namesWNetDisconnectDialog1W(Unicode)和WNetDisconnectDialog1A(ANSI)的
参见
Windows网络(WNet)概述
Windows网络函数
WNetConnectionDialog
WNetConnectionDialog1
DISCDLGSTRUCT
WNetDisconnectDialog
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月6日
==英文原文==WNetDisconnectDialog1 Function
The WNetDisconnectDialog1 function attempts to disconnect a network resource. If the underlying network returns ERROR_OPEN_FILES, the function prompts the user for confirmation. If there is any error, the function informs the user. The function requires a DISCDLGSTRUCT to specify the parameters for the disconnect attempt.
Syntax
C++
DWORD WNetDisconnectDialog1(
__in LPDISCDLGSTRUCT lpConnDlgStruct
);
Parameters
lpConnDlgStruct [in]
Pointer to a DISCDLGSTRUCT structure. The structure specifies the behavior for the disconnect attempt.
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_CANCELLEDWhen the system prompted the user for a decision about disconnecting, the user elected not to disconnect.
ERROR_OPEN_FILESUnable to disconnect because the user is actively using the connection.
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 start the dialog box.
ERROR_EXTENDED_ERRORA network-specific error occurred. Call the WNetGetLastError function 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 namesWNetDisconnectDialog1W (Unicode) and WNetDisconnectDialog1A (ANSI)
See Also
Windows Networking (WNet) Overview
Windows Networking Functions
WNetConnectionDialog
WNetConnectionDialog1
DISCDLGSTRUCT
WNetDisconnectDialog
Send comments about this topic to Microsoft
Build date: 8/6/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa385443(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:31:27