forked from Public-Mirror/Textractor
process id as hex
This commit is contained in:
parent
329d56c969
commit
6d59ad763c
@ -182,10 +182,11 @@ void MainWindow::on_attachButton_clicked()
|
|||||||
QString process = QInputDialog::getItem(this, "Select Process",
|
QString process = QInputDialog::getItem(this, "Select Process",
|
||||||
"If you don't see the process you want to inject, try running with admin rights\r\nYou can also type in the process id if you know it",
|
"If you don't see the process you want to inject, try running with admin rights\r\nYou can also type in the process id if you know it",
|
||||||
processList, 0, true, &ok);
|
processList, 0, true, &ok);
|
||||||
|
bool injected = false;
|
||||||
if (!ok) return;
|
if (!ok) return;
|
||||||
if (process.toInt()) ok &= Host::InjectProcess(process.toInt());
|
if (process.toInt(nullptr, 0)) injected |= Host::InjectProcess(process.toInt(nullptr, 0));
|
||||||
else for (auto i : allProcesses.values(process)) ok &= Host::InjectProcess(i);
|
else for (auto i : allProcesses.values(process)) injected |= Host::InjectProcess(i);
|
||||||
if (!ok) Host::AddConsoleOutput(L"failed to attach");
|
if (!injected) Host::AddConsoleOutput(L"failed to inject");
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_detachButton_clicked()
|
void MainWindow::on_detachButton_clicked()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user