TitanEngine/scylla_wrapper/Thunks.h

37 lines
580 B
C++

#pragma once
#include <windows.h>
#include <map>
class ImportThunk
{
public:
WCHAR moduleName[MAX_PATH];
char name[MAX_PATH];
DWORD_PTR va;
DWORD_PTR rva;
WORD ordinal;
DWORD_PTR apiAddressVA;
WORD hint;
bool valid;
bool suspect;
DWORD_PTR key;
void invalidate();
};
class ImportModuleThunk
{
public:
WCHAR moduleName[MAX_PATH];
std::map<DWORD_PTR, ImportThunk> thunkList;
DWORD_PTR firstThunk;
DWORD_PTR key;
DWORD_PTR getFirstThunk() const;
bool isValid() const;
};