John Hunter
John Hunter

Reputation: 4142

How can I enumerate objects in the windows system tray in .Net?

I want to monitor the windows system tray for icon text changes.

How can I do this in .Net preferably in C#?

Upvotes: 2

Views: 1251

Answers (1)

Reed Copsey
Reed Copsey

Reputation: 564731

This is possible using FindWindow with "Shell_TrayWnd" and SendData in the Windows API.

To do this in C#, you'll need to P/Invoke into the Windows API. Here is set of a C++ sample code you can use to port.

Upvotes: 1

Related Questions