2010-10-25 07:17:03 UTC
I have a need to get system-wide (or at least session- or desktop-
wide) notification about _attempt_ of activating background
application. Just after user click mouse button or Alt-Tab to
background application. I can't use system-wide message hooks because
it doesn't work for suspended threads - messages just don't arrive and
are buffered somewhere in the Windows internals.
So the question sounds like this: is there any method to get
notification just after user Alt-Tabs to the background app, or make
mouse-click in the App window or clicked on the Taskbar button and
before system consider any message to be sent to the App? It is
sufficient for me to know Process ID or HWND of the App window. Any
thoughts will be very appreciated. Even if it needs to write a driver
Thank you for your time spent reading my message.