Click here to Skip to main content
15,895,709 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Hi everybody!

I have a need to get system-wide (or at least desktop-wide) notification about _attempt_ of activating background application. Just after user click mouse button or keyboard alt-tab. I can't use system-wide message hooks because it is heavy artillery for my needs.

So the question sounds like: is there any method to get (kernel?.. shell?) notification just after user Alt-Tabs to, or mouse-clicks in the App window or 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 are very appreciated. Even if it needs to write a driver or service.

Kind regards,
Volodymyr
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900