CreateEnvironmentBlock总是失败,错误:6 [英] CreateEnvironmentBlock always fail with error: 6
问题描述
您好,我成功运行了CreateProcessAsUser而没有任何环境变量。现在,我正在尝试使用CreateEnvironmentBlock为方法调用添加一个环境块。我将用于CreateProcessAsUser的相同令牌传递给CreateEnvironmentBlock
方法,但我总是得到错误6:无效的令牌句柄。在文档中, CreateProcessAsUser 需要一个令牌,其访问权限超过了CreateEnvironmentBlock所需的权限。这应该有效,对吗?有谁有任何想法
为什么我收到此错误?任何帮助将不胜感激
Saludos
< blockquote>
你确定它是有效的令牌吗?
谢谢
Frank K [MSFT]
在Twitter上关注我们, www.twitter.com/WindowsSDK 。
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
Saludos
Are you sure it is valid token?
thanks
Frank K [MSFT]
Follow us on Twitter, www.twitter.com/WindowsSDK.
这篇关于CreateEnvironmentBlock总是失败,错误:6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!