C#: Redirect Standard Output of a Process that is Already Running

后端 未结 4 1138
离开以前
离开以前 2020-12-10 03:52

I\'ve been having a hard time getting the output of a \"sub-process\" (one launched internally by a blackbox process that I\'m monitoring via c# System.Diagnostics.Process)<

4条回答
  •  自闭症患者
    2020-12-10 04:01

    Assuming there's no more straightforward solution, you could try to run a piece a code in another process through CreateRemoteThread(), explained here.

提交回复
热议问题