private void WaitForWindow()
{
_hwnd = IntPtr.Zero;
var pid = _p.Id;
_hwnd = WaitForWindow(pid, null, null);
if (_hwnd == IntPtr.Zero)
{
throw new Exception("Couldn't start or find window of " + _cmdLine);
}
}
TargetApp::WaitForWindow ( int pid, string className, string windowTitle ) : |