Hi,
Thanks for posting in the community.
First of all, I would like to confirm my understanding of your issue.
From your description, I understand that you wants to know how to monitor
all the windows messages in System Wide From VB.NET something like Spy++?
Have I fully understood you? If there is anything I misunderstood, please
feel free to let me know.
I think you may need to use the Hook technique to set an system-level
Global Hook to WH_GETMESSAGE.
But Global Hook is Not Supported in .NET Framework
You cannot implement global hooks in Microsoft .NET Framework. To install a
global hook, a hook must have a native DLL export to insert itself in
another process that requires a valid, consistent function to call into.
This requires a DLL export, which .NET Framework does not support. Managed
code has no concept of a consistent value for a function pointer, because
these function pointers are proxies that are built dynamically.
319524 HOW TO: Set a Windows Hook in Visual Basic .NET
http://support.microsoft.com/?id=319524
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.