#include "parse.h" parsed_pe *ParsePEFromFile(const char *filePath) { //first, create a new parsed_pe structure parsed_pe *p = new parsed_pe(); if(p == NULL) { return NULL; } //make a new buffer object to hold just our file data p->fileBuffer = readFileToFileBuffer(filePath); //now, we need to do some actual PE parsing and file carving. sigh. return p; } void DestructParsedPE(parsed_pe *p) { return; } //iterate over the imports by RVA and string void IterImpRVAString(parsed_pe *pe, iterRVAStr cb, void *cbd) { return; } //iterate over relocations in the PE file void IterRelocs(parsed_pe *pe, iterReloc cb, void *cbd) { return; } //iterate over the exports by RVA void IterExpRVA(parsed_pe *pe, iterRVA cb, void *cbd) { return; } //iterate over sections void IterSec(parsed_pe *pe, iterSec cb, void *cbd) { return; }