jacob
jacob

Reputation: 1427

Get information about hidden tray icons in windows7

I am trying to get information on the system 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 ?

Upvotes: 1

Views: 519

Answers (2)

blade
blade

Reputation: 12933

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.

Upvotes: 0

David Heffernan
David Heffernan

Reputation: 613572

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.

Upvotes: 1

Related Questions