Can I monitor the size of a thread's message queue?
问题 Our application is getting a System Call Failed RPC error from DCOM ( 0x80010100 ), we suspect that the target thread's message queue is full (although I'm not convinced this is ture). I know the queue is limited to 10,000 messages and I want to see if we're close to this number in the common cases. Is there a way to monitor the size of a thread's message queue? The most promising option I found was GetQueueStatus but this doesn't include the number of messages in the queue only their types.