runtime: add launcher-driven extensive symbol scan mode

This commit is contained in:
Jacobwasbeast
2026-03-09 21:36:19 -05:00
parent 3293f1e181
commit 9118ce6682
5 changed files with 393 additions and 6 deletions
+5 -2
View File
@@ -16,15 +16,18 @@ public static class Injector
IntPtr ThreadHandle,
int ProcessId);
public static InjectedProcess LaunchSuspended(string exePath, string? workingDir = null)
public static InjectedProcess LaunchSuspended(string exePath, string? workingDir = null, string? extraArgs = null)
{
workingDir ??= Path.GetDirectoryName(exePath);
string commandLine = $"\"{exePath}\"";
if (!string.IsNullOrWhiteSpace(extraArgs))
commandLine += " " + extraArgs;
var si = new STARTUPINFO { cb = Marshal.SizeOf<STARTUPINFO>() };
bool success = CreateProcess(
exePath,
null,
commandLine,
IntPtr.Zero,
IntPtr.Zero,
false,