6 case pe::RESTYPE_CURSOR :
return "Cursor";
7 case pe::RESTYPE_FONT :
return "Font";
8 case pe::RESTYPE_BITMAP :
return "Bitmap";
9 case pe::RESTYPE_ICON :
return "Icon";
10 case pe::RESTYPE_MENU :
return "Menu";
11 case pe::RESTYPE_DIALOG :
return "Dialog";
12 case pe::RESTYPE_STRING :
return "Strings";
13 case pe::RESTYPE_FONTDIR :
return "Font Dir.";
14 case pe::RESTYPE_ACCELERATOR :
return "Accelerator";
15 case pe::RESTYPE_RCDATA :
return "RC Data";
16 case pe::RESTYPE_MESSAGETABLE :
return "Message Table";
18 case pe::RESTYPE_GROUP_CURSOR :
return "Cursors Group";
19 case pe::RESTYPE_GROUP_ICON :
return "Icons Group";
20 case pe::RESTYPE_VERSION :
return "Version";
21 case pe::RESTYPE_DLGINCLUDE :
return "Dialog Include";
22 case pe::RESTYPE_PLUGPLAY :
return "Plug-n-Play";
23 case pe::RESTYPE_VXD :
return "VXD";
24 case pe::RESTYPE_ANICURSOR :
return "Animated Cursor";
25 case pe::RESTYPE_ANIICON :
return "Animated Icon";
26 case pe::RESTYPE_HTML :
return "HTML";
27 case pe::RESTYPE_MANIFEST :
return "Manifest";
36 if (
myLeaf == NULL)
return NULL;
39 if (entry == NULL)
return NULL;
56 printf(
"[ERR] MyLeaf is NULL\n");
61 printf(
"[ERR] Leaf ERR\n");
64 DWORD size = entry->Size;
70 if (
myLeaf == NULL)
return 0;
73 if (entry == NULL)
return 0;
75 uint64_t dataRva = entry->OffsetToData;
83 if (
myLeaf == NULL)
return NULL;
const offset_t INVALID_ADDR
virtual offset_t toRaw(offset_t offset, addr_type addrType, bool allowExceptions=false)
BYTE * getContentAt(offset_t offset, bufsize_t size, bool allowExceptions=false)
Executable::addr_type detectAddrType(offset_t addr, Executable::addr_type hintType)
static QString translateType(pe::resource_type type)
BYTE * getContentAt(offset_t dataAddr, Executable::addr_type aT, bufsize_t dataSize)
ResourceLeafWrapper * myLeaf
void * getResContentPtr()
bufsize_t getResContentSize()
IMAGE_RESOURCE_DATA_ENTRY * leafEntryPtr()