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. Windows API
  4. How to capture the logon and logoff events in Windows Vista using windows service?

How to capture the logon and logoff events in Windows Vista using windows service?

Scheduled Pinned Locked Moved Windows API
tutorialquestion
3 Posts 2 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.
  • V Offline
    V Offline
    Vaibhav Deshpande 0
    wrote on last edited by
    #1

    Hi!! to all, I have sucessfully created a service which runs on Windows Vista and calls my application (without UAC dialogbox to apper) when first user logged in. Now I m stucking at a point as, I logoff or switch user after login (ie my service is running and my application is already invoked in the first users session), the application is not launched ie executed in the new logged on users account. I have used handlerEx function to capture the on session change event but I m unable to capture the login, logoff events. My service is running on the LocalSystem Account and my service type is SERVICE_WIN32_OWN_PROCESS. Please give me suggession to overcome this difficulty. With regards, Vaibhav Deshpande.

    S 1 Reply Last reply
    0
    • V Vaibhav Deshpande 0

      Hi!! to all, I have sucessfully created a service which runs on Windows Vista and calls my application (without UAC dialogbox to apper) when first user logged in. Now I m stucking at a point as, I logoff or switch user after login (ie my service is running and my application is already invoked in the first users session), the application is not launched ie executed in the new logged on users account. I have used handlerEx function to capture the on session change event but I m unable to capture the login, logoff events. My service is running on the LocalSystem Account and my service type is SERVICE_WIN32_OWN_PROCESS. Please give me suggession to overcome this difficulty. With regards, Vaibhav Deshpande.

      S Offline
      S Offline
      Scott Dorman
      wrote on last edited by
      #2

      Don't double post, it doesn't help your chances of getting an answer. The people here answer on a volunteer basis so they may not respond in a time frame you find acceptable or desirable. Waiting 30 minutes and posting again because you didn't get an answer isn't going to help. The original message is here[^].

      Scott. —In just two days, tomorrow will be yesterday. —Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai


      [Forum Guidelines] [Articles] [Blog]

      V 1 Reply Last reply
      0
      • S Scott Dorman

        Don't double post, it doesn't help your chances of getting an answer. The people here answer on a volunteer basis so they may not respond in a time frame you find acceptable or desirable. Waiting 30 minutes and posting again because you didn't get an answer isn't going to help. The original message is here[^].

        Scott. —In just two days, tomorrow will be yesterday. —Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai


        [Forum Guidelines] [Articles] [Blog]

        V Offline
        V Offline
        Vaibhav Deshpande 0
        wrote on last edited by
        #3

        Sorry Boss!! It was my mistake that the question was reposted because I was unable to see my first post so I reposted the same question again and after that I saw two posts of same question. Sorry for the inconvinience caused by me.. By the way I got the right answer for my post, Thanks codeproject members. With regards, Vaibhav

        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