| 128 | } |
| 129 | |
| 130 | bool PeParser::isValidPeFile() |
| 131 | { |
| 132 | bool retValue = false; |
| 133 | |
| 134 | if (pDosHeader) |
| 135 | { |
| 136 | if (pDosHeader->e_magic == IMAGE_DOS_SIGNATURE) |
| 137 | { |
| 138 | if (pNTHeader32) |
| 139 | { |
| 140 | if (pNTHeader32->Signature == IMAGE_NT_SIGNATURE) |
| 141 | { |
| 142 | retValue = true; |
| 143 | } |
| 144 | } |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | return retValue; |
| 149 | } |
| 150 | |
| 151 | bool PeParser::hasDirectory(const int directoryIndex) |
| 152 | { |
no outgoing calls
no test coverage detected