Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows API
  4. How to add Tray Icon on the System Tray while switch (or login , logoff) user event occured in Windows Vista?

How to add Tray Icon on the System Tray while switch (or login , logoff) user event occured in Windows Vista?

Scheduled Pinned Locked Moved Windows API
helpc++tutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vaibhav Deshpande 0
    wrote on last edited by
    #1

    Hi to all!! I am developing an dialog based application in MFC which works on Windows Vista. I am invoking my application using a windows service. It is properly working when login, logoff or switch user events occured. My problem is that at first when the service started and my application is launched I m getting the tray icon of my application (which is fine) but when logoff, logon or switch user events occured the though the application is invoked and running fine I am unable to get the tray icon of my application. Please help me for comming out of this difficulty. Thanks and regards, Vaibhav Deshpande.

    J 1 Reply Last reply
    0
    • V Vaibhav Deshpande 0

      Hi to all!! I am developing an dialog based application in MFC which works on Windows Vista. I am invoking my application using a windows service. It is properly working when login, logoff or switch user events occured. My problem is that at first when the service started and my application is launched I m getting the tray icon of my application (which is fine) but when logoff, logon or switch user events occured the though the application is invoked and running fine I am unable to get the tray icon of my application. Please help me for comming out of this difficulty. Thanks and regards, Vaibhav Deshpande.

      J Offline
      J Offline
      Jonathan Darka
      wrote on last edited by
      #2

      If your application requires elevation then you cannot get it to auto-start with a user logon, there is no way around this in Vista unless you remove the parts of your application which require elevation. If I am misunderstanding your question, then please elaborate. regards,


      Jonathan Wilkes Darka[Xanya.net]

      V 1 Reply Last reply
      0
      • J Jonathan Darka

        If your application requires elevation then you cannot get it to auto-start with a user logon, there is no way around this in Vista unless you remove the parts of your application which require elevation. If I am misunderstanding your question, then please elaborate. regards,


        Jonathan Wilkes Darka[Xanya.net]

        V Offline
        V Offline
        Vaibhav Deshpande 0
        wrote on last edited by
        #3

        Hi!! I am working on an application which is invoked by the windows service. I have overcome the difficulty of UAC in Vista i.e. my application is invoked as the service is started and as well as the new user logged in. Now I m stucking at a point that I have added the Tray Icon for my application, when application is first invoked the tray icon is shown on the system tray but when switch user event occured and new user logged in then though the application is invoked I am not getting the tray icon of my application. With regards, Vaibhav Deshpande

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups