Enumerate Tray Icons

  • Thread starter Thread starter Sean Dudley
  • Start date Start date
S

Sean Dudley

Hi folks, I am trying to figure out how to enumerate the system tray icons
and get their handles when explorer.exe is not running.

So I need to be able to ask probably through API which icons would be in the
system tray.

Any ideas? I know this is a tough one.


-Sean
 
Sean,

Unfortunately, I do not know of an API that will reveal the contents of
the system tray. The only way to communicate with the tray that I know of
is the Shell_NotifyIcon API, which does not have anything for getting
information about other icons.

Also, if Explorer.exe isn't running, then there will be no tray to get.

Hope this helps.
 
What if I register my own TrayNotifyWnd , etc without Explorer.exe around?
Won't I receive the tray notifications then? Any ideas how to emulate this?

Nicholas Paldino said:
Sean,

Unfortunately, I do not know of an API that will reveal the contents of
the system tray. The only way to communicate with the tray that I know of
is the Shell_NotifyIcon API, which does not have anything for getting
information about other icons.

Also, if Explorer.exe isn't running, then there will be no tray to get.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Sean Dudley said:
Hi folks, I am trying to figure out how to enumerate the system tray icons
and get their handles when explorer.exe is not running.

So I need to be able to ask probably through API which icons would be in the
system tray.

Any ideas? I know this is a tough one.


-Sean
 
Back
Top