If the process has a windows interface (as you refer to the red “X”), you can try Process.CloseMainWindow()
. If it fails, you can fallback to Process.Kill()
.
If the process has a windows interface (as you refer to the red “X”), you can try Process.CloseMainWindow()
. If it fails, you can fallback to Process.Kill()
.