public static ImageImportDescriptor Parse(BinaryReader reader) { ImageImportDescriptor descriptor = new ImageImportDescriptor(); descriptor.ImportLookupTableRVA = reader.ReadUInt32(); descriptor.TimeDateStamp = reader.ReadUInt32(); descriptor.ForwardChain = reader.ReadUInt32(); descriptor.NameRVA = reader.ReadUInt32(); descriptor.ImportAddressTableRVA = reader.ReadUInt32(); return(descriptor); }
public static ImportDirectory Parse(BinaryReader reader) { ImportDirectory importDirectory = new ImportDirectory(); ImageImportDescriptor descriptor = ImageImportDescriptor.Parse(reader); while (descriptor.NameRVA != 0) { importDirectory.Descriptors.Add(descriptor); descriptor = ImageImportDescriptor.Parse(reader); } return(importDirectory); }