mirror of
https://github.com/snltty/linker.git
synced 2025-10-30 04:02:13 +08:00
添加进程杀手
This commit is contained in:
@@ -37,11 +37,9 @@ using System.Reflection;
|
||||
using System.Text.Json.Serialization;
|
||||
using cmonitor.client.reports.keyboard;
|
||||
using cmonitor.client.reports.wallpaper;
|
||||
using common.libs.winapis;
|
||||
using cmonitor.client.reports.snatch;
|
||||
using cmonitor.service.messengers.snatch;
|
||||
using cmonitor.libs;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace cmonitor
|
||||
@@ -62,15 +60,13 @@ namespace cmonitor
|
||||
|
||||
//读取参数
|
||||
Dictionary<string, string> dic = ArgumentParser.Parse(args, out string error);
|
||||
//#if RELEASE
|
||||
#if RELEASE
|
||||
//提权
|
||||
if (dic.ContainsKey("elevated") == false)
|
||||
{
|
||||
Win32Interop.RelaunchElevated();
|
||||
}
|
||||
//#endif
|
||||
|
||||
Win32Interop.ProcessElevated();
|
||||
#endif
|
||||
|
||||
//初始化配置文件
|
||||
Config config = new Config();
|
||||
|
||||
Reference in New Issue
Block a user