mirror of
https://github.com/QuasarApp/pe-parse.git
synced 2025-04-26 12:24:32 +00:00
.
This commit is contained in:
parent
66046afe2e
commit
9ed4759bc7
27
parser-library/nt-headers.h
Normal file
27
parser-library/nt-headers.h
Normal file
@ -0,0 +1,27 @@
|
||||
#ifndef _NT_HEADERS
|
||||
#define _NT_HEADERS
|
||||
#include <boost/cstdint.hpp>
|
||||
|
||||
struct dos_header {
|
||||
boost::uint16_t e_magic;
|
||||
boost::uint16_t e_cblp;
|
||||
boost::uint16_t e_cp;
|
||||
boost::uint16_t e_crlc;
|
||||
boost::uint16_t e_cparhdr;
|
||||
boost::uint16_t e_minalloc;
|
||||
boost::uint16_t e_maxalloc;
|
||||
boost::uint16_t e_ss;
|
||||
boost::uint16_t e_sp;
|
||||
boost::uint16_t e_csum;
|
||||
boost::uint16_t e_ip;
|
||||
boost::uint16_t e_cs;
|
||||
boost::uint16_t e_lfarlc;
|
||||
boost::uint16_t e_ovno;
|
||||
boost::uint16_t e_res[4];
|
||||
boost::uint16_t e_oemid;
|
||||
boost::uint16_t e_oeminfo;
|
||||
boost::uint16_t e_res2[10];
|
||||
boost::uint32_t e_lfanew;
|
||||
};
|
||||
|
||||
#endif
|
@ -1,7 +1,9 @@
|
||||
#include <list>
|
||||
#include "parse.h"
|
||||
#include "nt-headers.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace boost;
|
||||
|
||||
struct section {
|
||||
string sectionName;
|
||||
|
Loading…
x
Reference in New Issue
Block a user