我有一套Vb.net代码,可找到nunit.exe程序,如:
Dim proc2 As EnvDTE80.Process2 = dbg2.GetProcesses(trans, "myPC").Item("nunit.exe")
现在,我要在这一进程的窗口上发布一个 but子,以便我这样做:
Dim ButtonHandle As IntPtr = FindWindowEx(X, 0, "Button", "Run")
SendMessage(ButtonHandle, &HF5, 0, 0)
But then I need the IntPtr
window handle for proc2
on the spot marked "X".
How do I get it?