Get information about hidden tray icons in windows7
I am trying to get information on the syste开发者_如何学Gom tray icons in windows 7. I am able to do so only on the visible icons in the 'User Promoted Notification Area' ToolBarWindow32. but how can I get information on the hidden icons ?
There's no public interface to work with notification icons other than the ones you own. You can only do this by hacking and reverse engineering the shell.
There is an undocumented COM interface ITrayNotify
for retrieving tray icons and changing their visibility, used by Explorer itself. See this link for full source: http://thread0.me/tag/windows/
Note that using an unofficial API is somewhat risky and this API in particular has introduced breaking changes with Windows 8. But hey, even Chrome uses this trick. Just be sure to handle failures properly.
精彩评论