Textractor/GUI/misc.h
2018-12-13 07:54:25 -05:00

18 lines
419 B
C++

#pragma once
#include "qtcommon.h"
#include "types.h"
class QAutoFile
{
public:
QAutoFile(QString name, QIODevice::OpenMode mode) : f(name) { f.open(mode); }
QFile* operator->() { return &f; }
private:
QFile f;
};
QMultiHash<QString, DWORD> GetAllProcesses();
std::optional<HookParam> ParseCode(QString HCode);
QString GenerateCode(HookParam hp, DWORD processId);
bool UpdateAvailable(std::string currentVersion);