Okay I'm trying to write an application to monitor a running process. Right
now I have a front end which allows the user to pick the programs they want
to monitor. The interval between how often I information for this process,
things like CPU usage, peak memory, virtual memory, etc... All this I get
from System.Diagnostics.Process. I display this information in a listview and
things are working fine. The user can then select one of these processes
being monitored and "I'll display modules in a treeview to them.
Now the thing I want to also do is display windows messages in a listbox. So
for example say I'm monitoring a program called MyApp.exe. I want to select
this program and then go back to this program and contiue working in it.
Clicking command buttons, entering data, selecting menu options. But I want
all these message to be captured by this monitoring program in that listbox
so when I return to it I would see a windows message for
WM_MOUSEMOVE
WM_LBUTTONDOWN
WM_LBUTTONUP
WM_LBUTTONDBLCLK
WM_RBUTTONDOWN
WM_RBUTTONUP
WM_RBUTTONDBLCLK
WM_MBUTTONDOWN
WM_MBUTTONUP
WM_MBUTTONDBLCLK
etc...
I will also create another list of what messages I want to capture but first
I need to capture them and can't figure this part out.
--
Joe Pacelli
jo********@earthlink.net