public static void MakeProcessKillable() { WinAPI.RtlSetProcessIsCritical(0, 0, 0); }
public static void MakeProcessUnkillable() { Process.EnterDebugMode(); WinAPI.RtlSetProcessIsCritical(1, 0, 0); }