This commit is contained in:
Andrew 2013-07-25 13:31:49 -04:00
parent 66046afe2e
commit 9ed4759bc7
2 changed files with 29 additions and 0 deletions

View 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

View File

@ -1,7 +1,9 @@
#include <list>
#include "parse.h"
#include "nt-headers.h"
using namespace std;
using namespace boost;
struct section {
string sectionName;