网站首页  词典首页

请输入您要查询的函数:

 

术语 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
随便看

 

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:24:11