CreateProcessAsUser的标准输出在C#中始终为空 [英] Standard output from CreateProcessAsUser Always Empty in C#
问题描述
我对使用
CreateProcessAsUser
标准输出始终为空。
I
https://stackoverflow.com/questions/51073835/standard-output-from-createprocessasuser-always-empty-in-c-sharp
https://stackoverflow.com/questions/51073835/standard-output-from-createprocessasuser-always-empty-in-c-sharp
如果您需要更多信息请告诉我,
If you need more information tell me please,
谢谢!
推荐答案
Juan,
对于您的代码,让我感到困惑的是,在您的Launch方法中,您从特定进程获取令牌" explorer"但使用令牌启动另一个进程(LaunchProcessAsUser)并使用它来处理命令行。你为什么不直接处理命令
line?你能告诉我们你的代码的逻辑吗?
For your codes, It make me confused that in your Launch method, you get the token from the specific process "explorer" but use the token to launch another process (LaunchProcessAsUser) and use it to process the command line. Why don’t you process the command line directly? Can you tell us the logic of your codes?
问候,
Dolen
这篇关于CreateProcessAsUser的标准输出在C#中始终为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!