Textractor_test/GUI/misc.h

23 lines
535 B
C
Raw Normal View History

2018-07-26 12:48:18 +08:00
#ifndef MISC_H
#define MISC_H
2018-08-23 00:24:55 +08:00
#include "qtcommon.h"
2018-08-25 00:50:20 +08:00
#include "types.h"
2018-07-26 12:48:18 +08:00
class QAutoFile
{
public:
QAutoFile(QString name, QIODevice::OpenMode mode) : f(name) { f.open(mode); }
QFile* operator->() { return &f; }
private:
QFile f;
};
2018-07-27 13:42:21 +08:00
QString GetFullModuleName(DWORD processId, HMODULE module = NULL);
2018-07-26 12:48:18 +08:00
QString GetModuleName(DWORD processId, HMODULE module = NULL);
2018-09-10 10:37:48 +08:00
QMultiHash<QString, DWORD> GetAllProcesses();
2018-08-25 02:24:46 +08:00
std::optional<HookParam> ParseCode(QString HCode);
2018-08-05 06:01:59 +08:00
QString GenerateCode(HookParam hp, DWORD processId);
2018-07-26 12:48:18 +08:00
#endif // MISC_H