How to peek a message in message queue?

What's the Win32 PeekMessage equivalent in .NET ?

Thanks!

[60 byte] By [LeiJiang] at [2007-12-16]
# 1
There isn't. You'll need to p/invoke the PeekMessage call. Note that you can pre-filter the current message by adding a message filter using the application object (check out Application.AddMessageFilter)

-mark
Program Manager
Microsoft
This post is provided "as-is"

MarkRideout at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 2
Thanks!
LeiJiang at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...