// See https://aka.ms/new-console-template for more information using QYDongDongTool; using QYDongDongTool.Unitls; using System.Diagnostics; public class Program { public static void Main() { var list = new CSharpAPIs().GetAllDesktopWindows(); var windows = list.Where(c => c.szClassName == "DD_JM_Workbench_DLG").ToList(); windows.ForEach(info => { foreach (ProcessModule module in Process.GetProcessById(info.ProcessId).Modules) { //检测是否已经注入 if (module.ModuleName.Contains("sendPhone.dll")) { return; } } //注入dll MP.Hook((int)info.ProcessId); }); } }