Igor R.
Igor R.

Reputation: 15075

How to count messages in the window message queue?

It seems that there's no a documented API to accomplish the subj, but maybe there's an undocumented one, or some trick to do this?

Upvotes: 3

Views: 2089

Answers (1)

Rob Kennedy
Rob Kennedy

Reputation: 163287

The only two counts you can get are "full" (something like PostMessage fails with the error ERROR_NOT_ENOUGH_QUOTA) and "empty" (PeekMessage returns zero).

If you need any other value, you're probably trying to solve the wrong problem.

Upvotes: 4

Related Questions