Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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.

   larryk                                          
perl -le "s,,reverse killer,e,y,rifle,lycra,,print"


Comment on Re: Tracking application events in Windows

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://715048]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2014-09-18 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (109 votes), past polls