Shell_NotifyIcon() not working for multiple users

Locked Shell_NotifyIcon() not working for multiple users

  • Saturday, January 21, 2012 1:07 PM
     
     

    Hi,

    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?

    Thanks,

All Replies

  • Monday, January 23, 2012 1:28 AM
     
     

    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