I have created one sample application, in which i am using tray icon for popup messages. I have two options in tray icon menu, "Enable" and "Disable". For both options i change the image of tray icon using Shell_NotifyIcon(NIM_MODIFY, &TrayIcon) but
it reflect change for current user only , when i switch to another user, previous image is shown for tray-icon.
I am accepting both the tray icons to change. Is there any option for this?
You need some inter-session communication like
global kernel objects or named pipe, Shell_NotifyIcon only affect the current user.
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.