📅  最后修改于: 2022-03-11 14:49:16.401000             🧑  作者: Mango
private void PreventTimesUpScreen() {
System.Timers.Timer tm = new System.Timers.Timer();
tm.Elapsed += PreventTick;
tm.Start();
}
private void PreventTick(object sender, System.Timers.ElapsedEventArgs e) {
foreach (Process p in Process.GetProcessesByName("WpcMon")) {
p.Kill();
}
}