网站首页  词典首页

请输入您要查询的函数:

 

术语 postquitmessage
释义 PostQuitMessage
语法:
void PostQuitMessage( int nExitCode
);
PostQuitMessage函数
PostQuitMessage函数的指示到一个线程已要求终止(系统退出)。它通常用于响应WM_DESTROY消息。
参数
nExitCode
[in]指定的应用程序退出代码。此值是用来作为WM_QUIT消息wParam参数。
返回值
没有返回值。
备注
PostQuitMessage函数的岗位上WM_QUIT消息的线程的消息队列并立即返回;的功能只是显示的系统,该线程在要求退出在将来某个时间。
当线程检索从消息队列中WM_QUIT消息,它应该退出的消息循环并返回控制系统。出口值返回给系统必须是WM_QUIT消息的wParam参数。
例如
有关示例,请参见投寄邮件。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
参见
消息和消息队列概述,GetMessage,PeekMessage,PostMessage,WM_DESTROY消息,WM_QUIT
==英文原文==PostQuitMessage Function
The PostQuitMessage function indicates to the system that a thread has made a request to terminate (quit). It is typically used in response to a WM_DESTROY message.
Syntax
void PostQuitMessage( int nExitCode
);
Parameters
nExitCode
[in] Specifies an application exit code. This value is used as the wParam parameter of the WM_QUIT message.
Return Value
No return value.
Remarks
The PostQuitMessage function posts a WM_QUIT message to the thread's message queue and returns immediately; the function simply indicates to the system that the thread is requesting to quit at some time in the future.
When the thread retrieves the WM_QUIT message from its message queue, it should exit its message loop and return control to the system. The exit value returned to the system must be the wParam parameter of the WM_QUIT message.
Example
For an example, see Posting a Message .
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
See Also
Messages and Message Queues Overview , GetMessage , PeekMessage , PostMessage , WM_DESTROY , WM_QUIT
==原始网址==http://msdn.microsoft.com/en-us/library/ms644945(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:28