c++ - How to detect changes to the Windows system tray? -


i've got windows 7 vm runs mandatory corporate communication systems (lync , outlook). i'd run process on windows machine monitors system tray , sends notifications host machine (xubuntu 13.04) i'm informed when email or im (i've tried seamless rdp it's ineffective solution).

anything linux or network oriented can handle relative ease, not know how how query state of windows system tray (or attach event listener state changes). i'm comfortable c++ , python i'll give viable solution go.

detailed state information preferable @ minimum need able detect changes in number of icons in tray.

on windows, if install visual studio, among visual studio tools there useful tool, named "spy++", it's tool shows windows , gives ability see messages particular window receives.

enter image description here

using tool, can see whole panel, contains "start button", shortcuts, tray, clock, etc. "shell_traywnd". can use "find" menu search particular window dragging "aim" on window.

the tray window "syspager" (000100d2 on attached image), can log messages window , see type of message window receives when receive mail in outlook.

after can write code listen messages window receives, , basing on have seen in "spy++" determine happened.

this start. writing code window handle , listen messages window receives part, think it's covered @ msdn or @ stackoverflow. searching particular window handle done findwindowex function , in order listen message have set "hook" done setwindowshookex function. hooking described pretty on msdn.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -