internal FileHeader(ExecutableImage exeImage, IMAGE_FILE_HEADER fileHeader, ulong headerOffset, ulong imageBase) { image = exeImage; header = fileHeader; uint size = Convert.ToUInt32(Utils.SizeOf<IMAGE_FILE_HEADER>()); location = new Location(headerOffset,Convert.ToUInt32(headerOffset),imageBase + headerOffset,size,size); }
internal FileHeader(ExeReader exeReader, IMAGE_FILE_HEADER fileHeader, StreamLocation streamLoc) { reader = exeReader; header = fileHeader; location = streamLoc; }