CreateEnvironmentBlock always fail with error: 6 RRS feed

  • Question

  • Hello, I successfully ran CreateProcessAsUser without any environment variable. Now I'm trying to add an environment block to the method call by using CreateEnvironmentBlock. I passed in the same token I used for CreateProcessAsUser to the CreateEnvironmentBlock method, but I always get error 6: Invalid token handle. In the documentation, CreateProcessAsUser requires a token that has more access than the one required for CreateEnvironmentBlock. This should have worked, right? Does anyone have any idea why I'm getting this error? Any help would be greatly appreciated



    Tuesday, January 4, 2011 7:20 PM

All replies