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. Identifying the interactive user

Identifying the interactive user

Scheduled Pinned Locked Moved C / C++ / MFC
question
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.
  • K Offline
    K Offline
    Krishnan V
    wrote on last edited by
    #1

    I have service application which has to launch an application in the context of the current interactive user. If there is not interactive user, then the application will not be started. I tried using CreateProcessAsUser, but then I need to have a token to that user's session. How do I get that? Thanks!

    C 1 Reply Last reply
    0
    • K Krishnan V

      I have service application which has to launch an application in the context of the current interactive user. If there is not interactive user, then the application will not be started. I tried using CreateProcessAsUser, but then I need to have a token to that user's session. How do I get that? Thanks!

      C Offline
      C Offline
      Cool Ju
      wrote on last edited by
      #2

      Hi, Try LogOnUser function to get the token. Bye, Cool Ju :cool: Dream Ur Destiny

      K 1 Reply Last reply
      0
      • C Cool Ju

        Hi, Try LogOnUser function to get the token. Bye, Cool Ju :cool: Dream Ur Destiny

        K Offline
        K Offline
        Krishnan V
        wrote on last edited by
        #3

        Cool Ju wrote:

        Try LogOnUser function to get the token

        I need to run my app on the same session as the current interactive session. LogonUser will create a different session. Furthermore, how do I get to know the username, etc..... I want to achieve something of the sort that DCOM does. For DCOM servers, we have the option to specify to launch it in the interactive user's session. Similar kind of thing is what I am looking for...

        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