diff --git a/parser-library/nt-headers.h b/parser-library/nt-headers.h new file mode 100644 index 0000000..37987fe --- /dev/null +++ b/parser-library/nt-headers.h @@ -0,0 +1,27 @@ +#ifndef _NT_HEADERS +#define _NT_HEADERS +#include + +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 diff --git a/parser-library/parse.cpp b/parser-library/parse.cpp index 9be1001..6efbe14 100644 --- a/parser-library/parse.cpp +++ b/parser-library/parse.cpp @@ -1,7 +1,9 @@ #include #include "parse.h" +#include "nt-headers.h" using namespace std; +using namespace boost; struct section { string sectionName;