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 get information about currently logged in user ?

How to get information about currently logged in user ?

Scheduled Pinned Locked Moved Windows API
c++helptutorialquestion
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 created an application(running on system account) which is invoked by a service as service(running on system account) started. This application calls another application(running on system account) by shellexecute function this second application(dialog based) is invoked in administrator account(i.e.(running on system account)). I m stucking at a point that I want to invoke that (second application i.e dialog based) in currently logged in user (i.e. after user switching) any guest user. For that I have to find the currently logged on user information and execute my second application on the current users desk top. My all application and service are MFC based and I am working on Windows Vista. Please help me.... Thanks and regards, Vaibhav Deshpande.

    E 1 Reply Last reply
    0
    • V Vaibhav Deshpande 0

      Hi to all!!! I have created an application(running on system account) which is invoked by a service as service(running on system account) started. This application calls another application(running on system account) by shellexecute function this second application(dialog based) is invoked in administrator account(i.e.(running on system account)). I m stucking at a point that I want to invoke that (second application i.e dialog based) in currently logged in user (i.e. after user switching) any guest user. For that I have to find the currently logged on user information and execute my second application on the current users desk top. My all application and service are MFC based and I am working on Windows Vista. Please help me.... Thanks and regards, Vaibhav Deshpande.

      E Offline
      E Offline
      Ernest Laurentin
      wrote on last edited by
      #2

      Does this help? http://msdn.microsoft.com/en-us/library/aa379608(VS.85).aspx[^]

      God bless, Ernest Laurentin

      V 1 Reply Last reply
      0
      • E Ernest Laurentin

        Does this help? http://msdn.microsoft.com/en-us/library/aa379608(VS.85).aspx[^]

        God bless, Ernest Laurentin

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

        Thanks Ernest!! I m studding the code. Also I m working on some thing like, as given in my query now I want my second application to be launched on the desk tops all the logged on users i.e. Suppose I have three users say 1)Administrator 2)Ernest (Limited user) 3)Vaibhav (any guest user). Now my first application launches when administrator logged in this application is going to call the second application mean time switch user event occurred and Ernest logged in and after that Vaibhav logged in so now 3 users are logged in and the second application is yet not invoked. After some time the second application (dialog based) is invoked and the dialog box a the dialog box is shown only on the administrator account. I m working on that the second application should be launched on all the logged on users desktop so any body who is currently logged in and his desktop is active can see the dialog box of the second application. I m working on windows Vista. Again thanks for your valuable suggestion. With best regards, Vaibhav Deshpande

        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