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. C / C++ / MFC
  4. Find out if user logged in?

Find out if user logged in?

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 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.
  • J Offline
    J Offline
    jaycush
    wrote on last edited by
    #1

    Hi everyone. I'm writing a service that periodically launches a GUI program. I want to check to make sure someone is logged on to the computer before i launch the program so it can interact with the desktop. Is there any easy way to do this? Thank you very much. Jay

    D C 2 Replies Last reply
    0
    • J jaycush

      Hi everyone. I'm writing a service that periodically launches a GUI program. I want to check to make sure someone is logged on to the computer before i launch the program so it can interact with the desktop. Is there any easy way to do this? Thank you very much. Jay

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      How about NetWkstaUserGetInfo()?


      "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

      1 Reply Last reply
      0
      • J jaycush

        Hi everyone. I'm writing a service that periodically launches a GUI program. I want to check to make sure someone is logged on to the computer before i launch the program so it can interact with the desktop. Is there any easy way to do this? Thank you very much. Jay

        C Offline
        C Offline
        CodeBeetle
        wrote on last edited by
        #3

        if u use OpenInputDesktop() and it returns NULL then the interactive desktop is not available. ie: no-one is currently logged on or "using" the computer.


        CodeBeetle.Com


        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