网站首页  词典首页

请输入您要查询的函数:

 

术语 getqueuestatus
释义 GetQueueStatus
语法:
DWORD GetQueueStatus( UINT flags
);
GetQueueStatus功能
该GetQueueStatus功能指示在调用线程的消息队列中消息的类型。
参数
旗帜
[in]指定的邮件为其检查类型。此参数可以是一个或多个下列值。
QS_ALLEVENTS
输入,中WM_TIMER,WM_PAINT消息,WM_HOTKEY,或张贴消息在队列中。
QS_ALLINPUT
任何邮件在队列中。
QS_ALLPOSTMESSAGE
阿张贴消息(比这里列出的除外),在队列中。
QS_HOTKEY
阿WM_HOTKEY消息在队列中。
QS_INPUT
输入消息队列中。这是由QS_KEY和QS_MOUSE。
Windows XP中:这还包括QS_RAWINPUT。
QS_KEY
阿WM_KEYUP,WM_KEYDOWN,WM_SYSKEYUP,或WM_SYSKEYDOWN消息在队列中。
QS_MOUSE
阿WM_MOUSEMOVE消息或鼠标按钮消息(WM_LBUTTONUP,WM_RBUTTONDOWN等)。
QS_MOUSEBUTTON
鼠标按键消息(WM_LBUTTONUP,WM_RBUTTONDOWN等)。
QS_MOUSEMOVE
阿WM_MOUSEMOVE消息在队列中。
QS_PAINT
阿WM_PAINT消息在队列中。
QS_POSTMESSAGE
阿张贴消息(比这里列出的除外),在队列中。
QS_RAWINPUT
Windows XP中:一个原始的输入消息队列中。有关更多信息,请参阅原始输入。
QS_SENDMESSAGE
一个消息由另一个线程或应用程序发送的队列中。
QS_TIMER
一个WM_TIMER消息在队列中。
返回值
高返回值的命令字表明,目前在队列中的邮件的类型。在低位字的消息显示,认为已被添加到队列类型和仍然在排队的自上次调用GetQueueStatus,GetMessage,或PeekMessage函数。
备注
一个QS_国旗在返回值的存在并不能保证后续调用GetMessage或PeekMessage函数将返回一条消息。 GetMessage和PeekMessage执行一些内部筛选,可能会导致邮件内部处理。为此,从GetQueueStatus返回值应该认为它是一个以GetMessage或PeekMessage是否应该叫做提示。
在QS_ALLPOSTMESSAGE和QS_POSTMESSAGE旗帜不同时被清除。 QS_POSTMESSAGE被清除时调用GetMessage或PeekMessage,不管您是筛选信息。 QS_ALLPOSTMESSAGE被清除时调用GetMessage或未经过滤的信息(wMsgFilterMin和wMsgFilterMax PeekMessage 0)。这可能是有用的当您调用PeekMessage多次获得不同范围的信息。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
消息和消息队列概述,GetInputState,GetMessage,PeekMessage
==英文原文==GetQueueStatus Function
The GetQueueStatus function indicates the type of messages found in the calling thread's message queue.
Syntax
DWORD GetQueueStatus( UINT flags
);
Parameters
flags
[in] Specifies the types of messages for which to check. This parameter can be one or more of the following values.
QS_ALLEVENTS
An input, WM_TIMER , WM_PAINT , WM_HOTKEY , or posted message is in the queue.
QS_ALLINPUT
Any message is in the queue.
QS_ALLPOSTMESSAGE
A posted message (other than those listed here) is in the queue.
QS_HOTKEY
A WM_HOTKEY message is in the queue.
QS_INPUT
An input message is in the queue. This is composed of QS_KEY and QS_MOUSE.
Windows XP: This also includes QS_RAWINPUT.
QS_KEY
A WM_KEYUP , WM_KEYDOWN , WM_SYSKEYUP , or WM_SYSKEYDOWN message is in the queue.
QS_MOUSE
A WM_MOUSEMOVE message or mouse-button message ( WM_LBUTTONUP , WM_RBUTTONDOWN , and so on).
QS_MOUSEBUTTON
A mouse-button message (WM_LBUTTONUP, WM_RBUTTONDOWN, and so on).
QS_MOUSEMOVE
A WM_MOUSEMOVE message is in the queue.
QS_PAINT
A WM_PAINT message is in the queue.
QS_POSTMESSAGE
A posted message (other than those listed here) is in the queue.
QS_RAWINPUT
Windows XP: A raw input message is in the queue. For more information, see Raw Input .
QS_SENDMESSAGE
A message sent by another thread or application is in the queue.
QS_TIMER
A WM_TIMER message is in the queue.
Return Value
The high-order word of the return value indicates the types of messages currently in the queue. The low-order word indicates the types of messages that have been added to the queue and that are still in the queue since the last call to the GetQueueStatus, GetMessage , or PeekMessage function.
Remarks
The presence of a QS_ flag in the return value does not guarantee that a subsequent call to the GetMessage or PeekMessage function will return a message. GetMessage and PeekMessage perform some internal filtering that may cause the message to be processed internally. For this reason, the return value from GetQueueStatus should be considered only a hint as to whether GetMessage or PeekMessage should be called.
The QS_ALLPOSTMESSAGE and QS_POSTMESSAGE flags differ in when they are cleared. QS_POSTMESSAGE is cleared when you call GetMessage or PeekMessage, whether or not you are filtering messages. QS_ALLPOSTMESSAGE is cleared when you call GetMessage or PeekMessage without filtering messages (wMsgFilterMin and wMsgFilterMax are 0). This can be useful when you call PeekMessage multiple times to get messages in different ranges.
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
UnicodeImplemented as Unicode version.
See Also
Messages and Message Queues Overview , GetInputState , GetMessage , PeekMessage
==原始网址==http://msdn.microsoft.com/en-us/library/ms644940(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:17:35