public override void VisitImportAddressTable(ImportAddressTable iat) { if (m_image.PEOptionalHeader.DataDirectories.IAT.VirtualAddress == RVA.Zero) { return; } SetPositionToAddress(m_image.PEOptionalHeader.DataDirectories.IAT.VirtualAddress); iat.HintNameTableRVA = ReadRVA(); }
internal Image() { m_dosHeader = new DOSHeader(); m_peFileHeader = new PEFileHeader(); m_peOptionalHeader = new PEOptionalHeader(); m_sections = new SectionCollection(); m_importAddressTable = new ImportAddressTable(); m_importTable = new ImportTable(); m_importLookupTable = new ImportLookupTable(); m_hintNameTable = new HintNameTable(); m_mdRoot = new MetadataRoot(this); }
public override void VisitImportAddressTable(ImportAddressTable iat) { m_textWriter.BaseStream.Position = 0; m_textWriter.Write(iat.HintNameTableRVA.Value); m_textWriter.Write(new byte [4]); }