Verify and get the dos header.
| 213 | |
| 214 | // Verify and get the dos header. |
| 215 | BOOL cobf::get_dos_header(PIMAGE_DOS_HEADER& dos_hdr) |
| 216 | { |
| 217 | // Verifing the dos header. |
| 218 | dos_hdr = (PIMAGE_DOS_HEADER)this->pe_rawf.data(); |
| 219 | if (sizeof(*dos_hdr) > this->pe_rawf.size() || |
| 220 | dos_hdr->e_magic != IMAGE_DOS_SIGNATURE) return FALSE; |
| 221 | return TRUE; |
| 222 | }; |
| 223 | |
| 224 | // Verify and get the nt headers. |
| 225 | BOOL cobf::get_nt_headers(PIMAGE_DOS_HEADER dos_hdr, PIMAGE_NT_HEADERS& nt_hdrs) |