How deep is the Win32 message queue?

后端 未结 2 1919
渐次进展
渐次进展 2020-12-10 13:10

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

The documentation for GetMessage and relatives doesn

相关标签:
2条回答
  • 2020-12-10 13:35

    As stated in the MSDN article, if you need to worry about the size of the message queue, you might be better off redesigning your application.

    0 讨论(0)
  • 2020-12-10 13:41

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

    If queue overflows, PostMessage fails.

    Documentation here:

    PostMessage function on MSDN

    0 讨论(0)
提交回复
热议问题