Win32消息队列有多深? [英] How deep is the Win32 message queue?

查看:170
本文介绍了Win32消息队列有多深?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个标准窗口的队列中保存多少条消息?队列溢出时会发生什么?

How many messages does the queue for a standard window hold? What happens when the queue overflows?

GetMessage和亲属的文档对此没有任何说明,并且PeekMessage仅对某些类型的消息提供了是/否,而不是消息计数.

The documentation for GetMessage and relatives doesn't say anything about this, and PeekMessage only gives you a yes/no for certain classes of messages, not a message count.

此页面表示使用内存映射来实现队列文件,并且没有消息数限制,但是该页面是关于WinCE的.这也适用于桌面Win32吗?

This page says that the queues are implemented using memory-mapped files, and that there is no message count limit, but that page is about WinCE. Does this apply to desktop Win32 as well?

推荐答案

10000默认情况下,但可以通过注册表进行调整.

10000 by default, but it can be adjusted via the registry.

如果队列溢出,则PostMessage失败.

If queue overflows, PostMessage fails.

此处的文档:

PostMessage函数

这篇关于Win32消息队列有多深?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆