2018-07-21 15:40:16 -07:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
2018-07-23 22:57:54 -07:00
|
|
|
#include <Windows.h>
|
2018-07-25 21:48:18 -07:00
|
|
|
#include <QVector>
|
2018-07-26 22:42:21 -07:00
|
|
|
#include <unordered_map>
|
|
|
|
#include <string>
|
2018-07-25 21:48:18 -07:00
|
|
|
#include "../texthook/host.h"
|
2018-07-24 10:39:02 -07:00
|
|
|
#include "hostsignaller.h"
|
2018-07-21 15:40:16 -07:00
|
|
|
|
2018-07-23 12:25:02 -07:00
|
|
|
namespace Ui
|
|
|
|
{
|
2018-07-25 10:46:59 -07:00
|
|
|
class MainWindow;
|
2018-07-21 15:40:16 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
2018-07-25 10:46:59 -07:00
|
|
|
Q_OBJECT
|
2018-07-21 15:40:16 -07:00
|
|
|
|
|
|
|
public:
|
2018-07-25 10:46:59 -07:00
|
|
|
explicit MainWindow(QWidget *parent = nullptr);
|
|
|
|
~MainWindow();
|
2018-07-21 15:40:16 -07:00
|
|
|
|
2018-07-23 12:25:02 -07:00
|
|
|
private slots:
|
2018-07-25 10:46:59 -07:00
|
|
|
void AddProcess(unsigned int processId);
|
|
|
|
void RemoveProcess(unsigned int processId);
|
|
|
|
void AddThread(TextThread* thread);
|
|
|
|
void RemoveThread(TextThread* thread);
|
|
|
|
void ThreadOutput(TextThread* thread, QString output);
|
2018-07-26 22:42:21 -07:00
|
|
|
void on_attachButton_clicked();
|
|
|
|
void on_detachButton_clicked();
|
|
|
|
void on_ttCombo_activated(int index);
|
|
|
|
void on_unhookButton_clicked();
|
2018-07-25 21:48:18 -07:00
|
|
|
void on_hookButton_clicked();
|
2018-07-26 22:42:21 -07:00
|
|
|
void on_saveButton_clicked();
|
|
|
|
void on_addExtenButton_clicked();
|
2018-07-25 21:48:18 -07:00
|
|
|
|
2018-07-21 15:40:16 -07:00
|
|
|
private:
|
2018-07-25 21:48:18 -07:00
|
|
|
QVector<HookParam> GetAllHooks(DWORD processId);
|
|
|
|
|
2018-07-25 10:46:59 -07:00
|
|
|
Ui::MainWindow *ui;
|
|
|
|
HostSignaller* hostSignaller;
|
2018-07-21 15:40:16 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|