| 807 | } |
| 808 | |
| 809 | bool PeParser::readPeSectionFromFile(DWORD readOffset, PeFileSection & peFileSection) |
| 810 | { |
| 811 | DWORD bytesRead = 0; |
| 812 | |
| 813 | peFileSection.data = new BYTE[peFileSection.dataSize]; |
| 814 | |
| 815 | SetFilePointer(hFile, readOffset, 0, FILE_BEGIN); |
| 816 | |
| 817 | return (ReadFile(hFile, peFileSection.data, peFileSection.dataSize, &bytesRead, 0) != FALSE); |
| 818 | } |
| 819 | |
| 820 | bool PeParser::readPeSectionFromProcess(DWORD_PTR readOffset, PeFileSection & peFileSection) |
| 821 | { |
nothing calls this directly
no outgoing calls
no test coverage detected