BearParser
Portable Executable parsing library (from PE-bear)
Loading...
Searching...
No Matches
DosHdrWrapper.h
Go to the documentation of this file.
1#pragma once
2
4#include "../Executable.h"
5
6#include "pe_formats.h"
7
9{
10public:
11 /* fields :*/
35
37
38 /* full structure boundaries */
39 virtual void* getPtr() { return m_Exe->getContent(); }
40 virtual bufsize_t getSize() { return sizeof(IMAGE_DOS_HEADER); }
41 virtual QString getName() { return "DOS Hdr"; }
42 virtual size_t getFieldsCount() { return FIELD_COUNTER; }
43
44 /* specific field boundaries */
45 virtual void* getFieldPtr(size_t fieldId, size_t subField = FIELD_NONE);
46 virtual QString getFieldName(size_t fieldId);
47 virtual Executable::addr_type containsAddrType(size_t fieldId, size_t subField = FIELD_NONE);
48};
49
uint32_t bufsize_t
#define FIELD_NONE
virtual Executable::addr_type containsAddrType(size_t fieldId, size_t subField=FIELD_NONE)
virtual QString getName()
virtual void * getFieldPtr(size_t fieldId, size_t subField=FIELD_NONE)
virtual QString getFieldName(size_t fieldId)
virtual bufsize_t getSize()
virtual size_t getFieldsCount()
virtual void * getPtr()
DosHdrWrapper(Executable *dosExe)
virtual BYTE * getContent()
Definition Executable.h:60