"Jim Mcduggan" <spam@spammer.com> wrote in message
news:%23k4d%23DWEGHA.1384@TK2MSFTNGP11.phx.gbl...
> Good suggestion Vladimir.
> The machine is a Kiosk, so we are not worried about the time changing.
> Can we write a BHO inside our c++ .exe daemon application or does it have
> to
> be it's own file/application?
> Is there any other way than a BHO, maybe even at the winsock layer?
Sorry, I know nothing about Kiosk (btw, in russian it has interesting
meaning, not connected with computers at all

), but you may implement BHO
(its inproc COM component that is represented as DLL) that will be
communicating with your *.exe application (if necessary) using IPC.
Note, that this is win32 specific techinque. For more information read this
article:
http://msdn.microsoft.com/library/de...n/html/bho.asp
(Browser Helper Objects: The Browser the Way You Want It).
As for another ways: there is no another documented way to detect that
browser is idle. Sure, you may write driver (or LSP, etc) that intercepts
network packets, or hook windows messages, or enumerate ShellWindows items,
retrieving items path, and then make comparisons whenether it changed for
last 5 minutes, etc... but all those approaches are overheat.
--
Vladimir