The IMAGE_IMPORT_DESCRIPTORs are contained in the Import Directory and holds all the information about function and symbol imports.
Наследование: AbstractStructure
Пример #1
0
 public void ImageImportDescriptorConstructorWorks_Test()
 {
     var importDescriptor = new IMAGE_IMPORT_DESCRIPTOR(RawStructures.RawImportDescriptor, 2);
     Assert.AreEqual((uint) 0x33221100, importDescriptor.OriginalFirstThunk);
     Assert.AreEqual((uint) 0x77665544, importDescriptor.TimeDateStamp);
     Assert.AreEqual(0xbbaa9988, importDescriptor.ForwarderChain);
     Assert.AreEqual(0xffeeddcc, importDescriptor.Name);
     Assert.AreEqual((uint) 0x44332211, importDescriptor.FirstThunk);
 }
Пример #2
0
 internal ImportedFunctionsParser Constructor(
     byte[] buff,
     IMAGE_IMPORT_DESCRIPTOR[] importDescriptors,
     IMAGE_SECTION_HEADER[] sectionHeaders,
     bool is64Bit
     )
 {
     var target
         = new ImportedFunctionsParser(buff, importDescriptors, sectionHeaders, is64Bit);
     return target;
     // TODO: add assertions to method ImportedFunctionsParserTest.Constructor(Byte[], IMAGE_IMPORT_DESCRIPTOR[], IMAGE_SECTION_HEADER[], Boolean)
 }