473,395 Members | 1,497 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Enumerate Tray Icons

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
Nov 15 '05 #1
2 3994
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]
- mv*@spam.guard.caspershouse.com

"Sean Dudley" <du*****@uwplatt.edu> wrote in message
news:eP**************@TK2MSFTNGP12.phx.gbl...
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

Nov 15 '05 #2
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 [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:OD**************@TK2MSFTNGP10.phx.gbl...
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]
- mv*@spam.guard.caspershouse.com

"Sean Dudley" <du*****@uwplatt.edu> wrote in message
news:eP**************@TK2MSFTNGP12.phx.gbl...
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


Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: williamc | last post by:
Recently reinstalled mySQL v1.4 on Win2000. When my Win2000 OS boots up I see the mySQLadmin dialog twice, and then two icons appear in the system tray. I can kill one, and the other continues to...
1
by: Tomo Ferega | last post by:
I'm trying to write a simple program which ejects CD if closed and closes it otherwise. Problem is, I have no idea how to do it or where to start looking. So any help would be appreciatd. Also,...
10
by: Zeljko | last post by:
Hi, I have a form with a tray icon. However, when I minimize the form, it stays visible - not in the task bar (I have showintaskbar property set to false), but in a form of a rectangle sitting...
3
by: joe | last post by:
Hi guys, Is there any way to refresh the system tray. Every time the explorer crashes the notify icons are removed and I cannot see them when it comes back even when my application is running....
7
by: Benny Raymond | last post by:
I searched for a couple hours lastnight on example code of how to go about making an item in the System Tray (notification area) not be square. I've found several programs that do this but I can't...
2
by: asif | last post by:
When I add a USB key, system tray icon on Windows XP shows USB icon. It also shows icon that can be used to "Safely Remove Hardware". I would like to use this icon in one of my Visual C++...
3
by: Patrick Dugan | last post by:
I am using VS2005 (vb) and I have a program that starts when Windows boots up. Occasionally the icon that should appear in the system tray does not show up. The program is still running in memory...
0
MikeJaskov
by: MikeJaskov | last post by:
Hi. I'm working on some project so how to diasble system tray icons and clock or how to hide system tray icons and clock. Many thanks . . .
0
vdraceil
by: vdraceil | last post by:
Hi all,does anyone know how to remove an icon(of some other application) from the system tray without the process of that application being affected? can SHELL_NOTIFYICON be used for this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.