Making a C# kill event for a vb6 app?

前端 未结 3 1939
醉酒成梦
醉酒成梦 2020-11-30 16:04

I have a VB6 app that processes for a very, very long time. Killing it directly is not feasible, so I would like to set some sort of flag in the VB6 app. If in my C# app I d

3条回答
  •  臣服心动
    2020-11-30 16:31

    I wouldn't keep a reference open across process boundaries but you can certianly cache the Long hWnd of the process and call kill on it from within .Net.

提交回复
热议问题