网站首页  计算机词典

请输入您要查询的字词:

 

字词 exitwindows
释义 ExitWindows
语法:
C++
BOOL WINAPI ExitWindows(
DWORD dwReserved,
UINT uReserved
);
ExitWindows宏
调用ExitWindowsEx函数注销交互式用户。应用程序应该直接调用调用ExitWindowsEx。
参数
dwReserved
此参数必须为零。
uReserved
此参数必须为零。
返回值
如果调用成功,则返回值为非零值。
如果调用失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
该系统发送一个WM_QUERYENDSESSION到每个运行的应用程序的主窗口。
应用程序同意终止返回TRUE时,收到此消息(或者允许DefWindowProc函数来处理该消息)。如果任何应用程序返回FALSE时收到WM_QUERYENDSESSION消息,注销被取消。
系统进程后,对WM_QUERYENDSESSION消息的结果,它发出的设置为TRUE的wParam参数WM_ENDSESSION消息如果系统正在关闭,并为FALSE,如果事实并非如此。
实例
有关示例,请参见如何注销当前用户。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
参见
注销
系统关机函数
DefWindowProc
调用ExitWindowsEx
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==ExitWindows Macro
Calls the ExitWindowsEx function to log off the interactive user. Applications should call ExitWindowsEx directly.
Syntax
C++
BOOL WINAPI ExitWindows(
DWORD dwReserved,
UINT uReserved
);
Parameters
dwReserved
This parameter must be zero.
uReserved
This parameter must be zero.
Return Value
If the call succeeds, the return value is nonzero.
If the call fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
The system sends a WM_QUERYENDSESSION to the main window of each running application.
An application agrees to terminate by returning TRUE when it receives this message (or by allowing the DefWindowProc function to process the message). If any application returns FALSE when it receives the WM_QUERYENDSESSION message, the logoff is canceled.
After the system processes the results of the WM_QUERYENDSESSION message, it sends the WM_ENDSESSION message with the wParam parameter set to TRUE if the system is shutting down and to FALSE if it is not.
Examples
For an example, see How to Log Off the Current User .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinuser.h (include Windows.h)
See Also
Logging Off
System Shutdown Functions
DefWindowProc
ExitWindowsEx
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa376867(VS.85).aspx\n
随便看

 

计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。

 

Copyright © 2021-2025 foosec.com All Rights Reserved
更新时间:2026/10/23 23:27:21