Results 1 to 2 of 2

Thread: Detecting If logged in or not

  1. #1
    assbeef
    Guest

    Detecting If logged in or not

    My program runs as a service during windows startup. I want it to detect when the user has logged into windows so it can automatically add an icon to the Tray when it loads. Or is the System Tray already loaded when the login screen is shown, but just not visible? (probably not) Does anyone have any ideas?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Try the GetUserName API. If the results are Null, then no one is logged in.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width