windows services - How to start a notify icon -


hi have windows service application running on users local computers. have application updater app invoked service check if there latest updates avaliable. if there pop notification on task bar notify user there updates avaliable. user can click on the notify icon , start update process stop service, install updates , restart app.

my question how can notify icon appear on desktop. tried updater pop icon since windows service starts updater, updater runs under system user , hence cannot open uis. can suggest solution please

you don't mention language you're using develop app, answer may vary slightly. basically, windows services cannot interact logged in user directly, since run in different windowstation. this page on msdn describes common techniques achieve ui interaction windows service; of them involve calling non-manage code.

in particular, suggest call createprocessasuser service launch separate app runs in user context , displays icon on notify area. if ui app needs exchange information running service, need implement kind of ipc such named pipes.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -