4
1
mirror of https://github.com/QuasarApp/CQtDeployer.git synced 2025-05-05 22:19:36 +00:00
2019-03-17 18:42:07 +03:00

41 lines
974 B
C++

#ifndef PE_H
#define PE_H
#include <QString>
struct LIB_META_INFO {
unsigned int
}
class PE
{
private:
public:
enum class MashineTypesS: unsigned short {
IMAGE_FILE_MACHINE_UNKNOWN = 0x0,
IMAGE_FILE_MACHINE_AMD64 = 0x8664, // x64
IMAGE_FILE_MACHINE_ARM = 0x1c0, // ARM little endian
IMAGE_FILE_MACHINE_ARM64 = 0xaa64, // ARM64 little endian
IMAGE_FILE_MACHINE_ARMNT = 0x1c4, // ARM Thumb-2 little endian
IMAGE_FILE_MACHINE_I386 = 0x14c, // Intel 386 or later processors and compatible processors
};
enum class RunType: unsigned short {
_UNKNOWN = 0x0,
_32bit = 0x10B,
_64bit = 0x20B,
_ROM = 0x107,
};
constexpr static unsigned int PE_MAGIC = 0x00004550;
constexpr static unsigned int INDEX_PE_MAGIC = 0x80;
bool is32bit(const QString& file);
bool dependecies(QStringList& lisr, const QString& file);
PE();
};
#endif // PE_H