Browse Source

更新dllin

pjzs_starttask_update
shanji 1 year ago
parent
commit
73a407789e
  1. 34
      BBWY.Client/Helpers/DongDongHelper.cs
  2. BIN
      InDll2/dllin(3).exe

34
BBWY.Client/Helpers/DongDongHelper.cs

@ -23,20 +23,33 @@ namespace BBWY.Client.Helpers
private void InJectionTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) private void InJectionTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{ {
InJection(); InJection();
} }
private void InJection() private void InJection()
{ {
try try
{ {
ProcessStartInfo p = new ProcessStartInfo(); var jdweb_cef_subprocessList = Process.GetProcessesByName("jdwb_cef_subprocess");
//p.UseShellExecute = true; if (jdweb_cef_subprocessList.Length > 0)
p.CreateNoWindow = true; {
p.FileName= Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "InJectionDongDong", "dllin.exe"); foreach (var jdweb_cef_subprocess in jdweb_cef_subprocessList)
p.Arguments = "[jdwb_cef_subprocess]"; {
p.Verb = "runas"; ProcessStartInfo pi = new ProcessStartInfo();
Process.Start(p); //p.UseShellExecute = true;
pi.CreateNoWindow = true;
pi.FileName = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "InJectionDongDong", "dllin(3).exe");
pi.Arguments = $"[{jdweb_cef_subprocess.Id}]";
pi.Verb = "runas";
pi.RedirectStandardOutput = true;
var p = Process.Start(pi);
string output = p.StandardOutput.ReadToEnd();
p.WaitForExit();
Console.WriteLine($"jdweb_cef_subprocess {jdweb_cef_subprocess.Id} output: {output}");
}
}
} }
catch (Exception ex) catch (Exception ex)
{ {
@ -63,11 +76,12 @@ namespace BBWY.Client.Helpers
List<string> dongdongList = new List<string>(); List<string> dongdongList = new List<string>();
var list = csapi.GetAllDesktopWindows(); var list = csapi.GetAllDesktopWindows();
var windows = list.Where(c => c.szClassName == "DD_JM_Workbench_DLG").ToList(); var windows = list.Where(c => c.szClassName == "Qt5QWindowIcon").ToList(); //DD_JM_Workbench_DLG
windows.ForEach(info => windows.ForEach(info =>
{ {
dongdongList.Add(info.szWindowName.Replace("的工作台", "")); dongdongList.Add(info.szWindowName.Replace("的工作台", string.Empty)
.Replace("-咚咚融合工作台", string.Empty));
}); });
return dongdongList; return dongdongList;

BIN
InDll2/dllin(3).exe

Binary file not shown.
Loading…
Cancel
Save