Textractor/GUI/misc.h

21 lines
405 B
C
Raw Normal View History

2018-07-25 21:48:18 -07:00
#ifndef MISC_H
#define MISC_H
2018-08-22 12:24:55 -04:00
#include "qtcommon.h"
2018-08-24 12:50:20 -04:00
#include "types.h"
2018-07-25 21:48:18 -07:00
class QAutoFile
{
public:
QAutoFile(QString name, QIODevice::OpenMode mode) : f(name) { f.open(mode); }
QFile* operator->() { return &f; }
private:
QFile f;
};
2018-09-09 22:37:48 -04:00
QMultiHash<QString, DWORD> GetAllProcesses();
2018-08-24 14:24:46 -04:00
std::optional<HookParam> ParseCode(QString HCode);
2018-08-04 18:01:59 -04:00
QString GenerateCode(HookParam hp, DWORD processId);
2018-07-25 21:48:18 -07:00
#endif // MISC_H