murrayju / CreateProcessAsUser

Creates a process in a different Windows session
MIT License
369 stars 114 forks source link

StartProcessAsCurrentUser: CreateProcessAsUser failed. #28

Open MohithKumarKakarala opened 5 years ago

MohithKumarKakarala commented 5 years ago

I am running a program in SYSTEM user context and want to user StartProcessAsCurrentUser to initiate a new instance of the same program but in logged-in user context. When I call StartProcessCurrentUser, "StartProcessAsCurrentUser: CreateProcessAsUser failed." error is raised and quitting. What could be wrong? I am obtaining a user token with the code below and passing it to CreateProcessAsUser: hUserToken = WindowsIdentity.GetCurrent().Token;

ajhalls commented 5 years ago

I have the same issue

AndrewSav commented 5 years ago

Guys, try searching closed issues.