void PeHeaderT<32>::makeValidSpecific() { setMachine(PELIB_IMAGE_FILE_MACHINE_I386); dword dwCharacteristics = PELIB_IMAGE_FILE_EXECUTABLE_IMAGE | PELIB_IMAGE_FILE_32BIT_MACHINE; setCharacteristics(dwCharacteristics); setMagic(PELIB_IMAGE_NT_OPTIONAL_HDR32_MAGIC); }
void PeHeaderT<64>::makeValidSpecific() { setMachine(PELIB_IMAGE_FILE_MACHINE_AMD64); dword dwCharacteristics = PELIB_IMAGE_FILE_EXECUTABLE_IMAGE | PELIB_IMAGE_FILE_LARGE_ADDRESS_AWARE; setCharacteristics(dwCharacteristics); setMagic(PELIB_IMAGE_NT_OPTIONAL_HDR64_MAGIC); }
void write(PUP::dataType t,int n) { if (!bannerDisplayed) showBanner(); setMagic(pupMagic); type=t^typeMask; setLength(n); }