How to get information about currently logged in user ?
-
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.
-
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.
Does this help? http://msdn.microsoft.com/en-us/library/aa379608(VS.85).aspx[^]
God bless, Ernest Laurentin
-
Does this help? http://msdn.microsoft.com/en-us/library/aa379608(VS.85).aspx[^]
God bless, Ernest Laurentin
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