Ensure Process.MainWindowHandle is refreshed (#32695)
authorFernando Andreu <2480661+fernandreu@users.noreply.github.com>
Sat, 29 Feb 2020 14:12:23 +0000 (14:12 +0000)
committerGitHub <noreply@github.com>
Sat, 29 Feb 2020 14:12:23 +0000 (09:12 -0500)
commit3bd8d1b1bf7b0f7127e00f2db48f1636d0f8e587
treef80abf2490aa6772d59f85a77acc984c7340cf46
parent6b4feb0860c7da7acca055bf0e91a67d83a5d619
Ensure Process.MainWindowHandle is refreshed (#32695)

* Ensure Process.MainWindowHandle is refreshed

This will set _haveMainWindow to true only if
_mainWindowHandle is non-zero. It also forces
the latter to be reset during a Process.Refresh()
call, hence allowing the re-evaluation of both.

Fix #32690

* Mark test for local outerloop testing only

* Rename exePath constant to ExePath
src/libraries/System.Diagnostics.Process/src/System/Diagnostics/Process.Win32.cs
src/libraries/System.Diagnostics.Process/src/System/Diagnostics/Process.Windows.cs
src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs