| 231 | } |
| 232 | |
| 233 | DWORD PE::getNewSectionVirtualAddress() |
| 234 | { |
| 235 | // return the next section's "virtual address", which is actually its relative virtual address |
| 236 | return align |
| 237 | ( |
| 238 | pSectionHeader[pNtHeader->FileHeader.NumberOfSections - 1].VirtualAddress + pSectionHeader[pNtHeader->FileHeader.NumberOfSections - 1].Misc.VirtualSize, |
| 239 | pNtHeader->OptionalHeader.SectionAlignment |
| 240 | ); |
| 241 | } |
| 242 | |
| 243 | DWORD PE::getNewSectionFileOffset() |
| 244 | { |