Service app - How do I tell if a user logs in?
-
I'm writing a VB app that will be deployed as a service (using SRVANY) under NT. It sits as an icon on the system tray, and puts up a visible dialog when clicked. The problem is that if it is started automatically before the user logs in the Shell_NotifyIcon function can't display the icon in the system tray because there is no task bar. Then when a user does log in there's no icon. Can anyone tell me how I can recognise when a user has logged in (or out) so that I can manage the icon properly? Dave
-
I'm writing a VB app that will be deployed as a service (using SRVANY) under NT. It sits as an icon on the system tray, and puts up a visible dialog when clicked. The problem is that if it is started automatically before the user logs in the Shell_NotifyIcon function can't display the icon in the system tray because there is no task bar. Then when a user does log in there's no icon. Can anyone tell me how I can recognise when a user has logged in (or out) so that I can manage the icon properly? Dave
-
.. what about something which [tries to] talks to the service which the user logged on in 'Startup' or the non-user visible eqiv. [Like VNC] Bon chance Al. ATL Student :rolleyes:
I'm sorry, I must be thick because I don't understand a word of that. What do you mean by "the service which the user logged on in 'Startup'"? What is VNC? Dave:confused: Dave
-
I'm sorry, I must be thick because I don't understand a word of that. What do you mean by "the service which the user logged on in 'Startup'"? What is VNC? Dave:confused: Dave
Write your service as usual, and then write secondary app which you can place in the user startup folder which tries to connect to your service. VNC is a remote control app, which is well respected and exists under GPL I think: http://www.uk.research.att.com/vnc/ It also gives an icon in the 'clock box' when running as a service. Al. ATL Student :rolleyes: