Using Low Level keyboard hook problem [modified]
-
Hi all, Currently am working in a project, where in my application there is a window form, holding several pages(using WPF).now i've to implement session timeout functionality in my application using window hook for keyboard and mouse. i've a implemented a timer(System.Threading)TimerCallback, which periodically examine, whether, any key board message or mouse message occure ONLY ON MY APPLICATION. this means, minimizing my application form, i can play computer game, but after certain period my application can throw timeout session. now the problem is, delegate(by which i'm calling window hook function whenever key or mouse pressed) is firing event even if my function is minimized. (i know this will fire), but the only requirement is how i manipulate these messages (key and mouse messages)only haapen to my application window. i don't know how to do this.. please help please go through these urls, as i'm trying to develop window hook, by help of these..... here he has used WH_KEYBOARD_LL Hook which is global 1. "http://blogs.msdn.com/toub/archive/2006/05/03/589423.aspx" 2. "http://blogs.msdn.com/toub/archive/2006/05/03/589468.aspx" Please please help...... :^) -- modified at 18:14 Saturday 8th September, 2007
kamalesh