Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Tracking application events in Windows

by larryk (Friar)
on Oct 02, 2008 at 16:49 UTC ( #715048=note: print w/replies, xml ) Need Help??

in reply to Tracking application events in Windows

The best way is to define a new standard for application monitoring, sell it to the companies you are interested in and get them to call your API. On the off-chance that you don't get buy-in, you could resort to some sort of nastiness with SetWindowsHookEx but I don't fancy your chances in Perl (e.g. using Win32::API) so the next best way is to write a little event logger in C and tail the log from Perl. This will work assuming those apps aren't actively protecting their message queues. Check out the WH_GETMESSAGE and GetMsgProc handler documentation on MSDN.
perl -le "s,,reverse killer,e,y,rifle,lycra,,print"
  • Comment on Re: Tracking application events in Windows

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://715048]
Discipulus is Corion reading 'Gory details of parsing quoted constructs'?..
[perldigious]: That's awesome erix. One of my work friends, who coincidentally convinced me to learn Perl originally, has a Finnish pen-pal. I showed him this and he immediately wanted to send it along to her.
[perldigious]: Also coincidentally, I'm currently in the middle of a winter storm that has dropped 1 foot of snow and is expected to drop another. I might have to adapt this for customers/vendors who come visit and put it at the beggining of every presentation I give.

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (12)
As of 2016-12-06 16:22 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (112 votes). Check out past polls.