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