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. Visual Basic
  4. Service app - How do I tell if a user logs in?

Service app - How do I tell if a user logs in?

Scheduled Pinned Locked Moved Visual Basic
questionlinuxhelp
4 Posts 2 Posters 19 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.
  • D Offline
    D Offline
    Dave Midgley
    wrote on last edited by
    #1

    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

    J 1 Reply Last reply
    0
    • D Dave Midgley

      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

      J Offline
      J Offline
      jkgh
      wrote on last edited by
      #2

      .. 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:

      D 1 Reply Last reply
      0
      • J jkgh

        .. 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:

        D Offline
        D Offline
        Dave Midgley
        wrote on last edited by
        #3

        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

        J 1 Reply Last reply
        0
        • D Dave Midgley

          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

          J Offline
          J Offline
          jkgh
          wrote on last edited by
          #4

          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:

          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