Is it possible to get Logged in user Non Restricted token from a service on Vista?

Posted by coolcake on Stack Overflow See other posts from Stack Overflow or by coolcake
Published on 2010-02-23T08:30:05Z Indexed on 2010/03/29 11:23 UTC
Read the original article Hit count: 198

Filed under:
|

Hello All,

I need to create a process with integrity level high, so that it can do all the administrative tasks. But the created process should run in the current logged in desktop i.e. it should not run in session 0. By default only administrators will log on to the console.

The service should launch the process, as service is running in session 0 and system account. Can it any how get the non restricted token and use it in CreateProcessAsUser, so that the process created does have integrity level of high or system. Is it possible? One more thing is i should get the non restricted token with out prompting for user name or password of the logged in user.

Thanks

© Stack Overflow or respective owner

Related posts about Vista

Related posts about vc++