private void attachToProcessToolStripSplitButton_ButtonClick(object sender, EventArgs e) { using (var pb = new ProcessBrowserForm(Program.Settings.LastProcess)) { if (pb.ShowDialog() == DialogResult.OK) { if (pb.SelectedProcess != null) { // Is 64Bit Program.RemoteProcess.Is64 = System.Diagnostics.Process.GetProcessById(pb.SelectedProcess.Id.ToInt32()).Is64BitProcess(); if (Program.RemoteProcess.Is64) { Constants.Platform = "x64"; Constants.AddressHexFormat = "X016"; } else { Constants.Platform = "x86"; Constants.AddressHexFormat = "X08"; } AttachToProcess(pb.SelectedProcess); if (pb.LoadSymbols) { LoadAllSymbolsForCurrentProcess(); } } } } }
private void attachToProcessToolStripSplitButton_ButtonClick(object sender, EventArgs e) { using (var pb = new ProcessBrowserForm(Program.Settings.LastProcess)) { if (pb.ShowDialog() == DialogResult.OK) { if (pb.SelectedProcess != null) { AttachToProcess(pb.SelectedProcess); if (pb.LoadSymbols) { LoadAllSymbolsForCurrentProcess(); } } } } }
private void attachToProcessToolStripMenuItem_Click(object sender, EventArgs e) { using (var pb = new ProcessBrowserForm(nativeHelper, Program.Settings.LastProcess)) { if (pb.ShowDialog() == DialogResult.OK) { DetachFromCurrentProcess(); remoteProcess.Process = pb.SelectedProcess; remoteProcess.UpdateProcessInformations(); if (pb.LoadSymbols) { LoadAllSymbolsForCurrentProcess(); } Program.Settings.LastProcess = remoteProcess.Process.Name; } } }
private void attachToProcessToolStripMenuItem_Click(object sender, EventArgs e) { using (var pb = new ProcessBrowserForm(coreFunctions, Program.Settings.LastProcess)) { if (pb.ShowDialog() == DialogResult.OK) { if (pb.SelectedProcess != null) { remoteProcess.Close(); remoteProcess.Open(pb.SelectedProcess); remoteProcess.UpdateProcessInformations(); if (pb.LoadSymbols) { LoadAllSymbolsForCurrentProcess(); } Program.Settings.LastProcess = remoteProcess.UnderlayingProcess.Name; } } } }