Createprocessasuser fails with 0xc0000142

B

Balamurugan KR

I am trying to impersonate and start a new process using the following
steps.

1. LogonUser
2. LoadUserProfile
3. CreateEnvironment Block
4. CreateProcessAsUser.

The above works fine if the "impersonated user" belongs to administrators .

For non administrators CreateProcessasuser fails with the error message
"The application failed to initialize properly (0xc0000142). Click on ok to
terminate the application"

I am trying to find out the minimum priviliage for the "impersonated user"
to start the process.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top