Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StartProcessAsCurrentUser: CreateProcessAsUser failed. #28

Open
MohithKumarKakarala opened this issue Jun 11, 2019 · 2 comments
Open

StartProcessAsCurrentUser: CreateProcessAsUser failed. #28

MohithKumarKakarala opened this issue Jun 11, 2019 · 2 comments

Comments

@MohithKumarKakarala
Copy link

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
Copy link

ajhalls commented Jun 18, 2019

I have the same issue

@AndrewSav
Copy link

Guys, try searching closed issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants