MCPcopy Create free account
hub / github.com/NtQuery/Scylla / readPeSectionFromFile

Method readPeSectionFromFile

Scylla/PeParser.cpp:809–818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

807}
808
809bool 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
820bool PeParser::readPeSectionFromProcess(DWORD_PTR readOffset, PeFileSection & peFileSection)
821{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected