The thunk data is used by for the imports in the import section.
Наследование: AbstractStructure
Пример #1
0
        public void ImageThunkData64ConstructorWorks_Test()
        {
            var thunkData64 = new IMAGE_THUNK_DATA(RawStructures.RawThunkData64, 2, true);

            Assert.AreEqual((ulong) 0x7766554433221100, thunkData64.AddressOfData);
            Assert.AreEqual((ulong) 0x7766554433221100, thunkData64.ForwarderString);
            Assert.AreEqual((ulong) 0x7766554433221100, thunkData64.Function);
            Assert.AreEqual((ulong) 0x7766554433221100, thunkData64.Ordinal);
        }
Пример #2
0
        public void ImageThunkData32ConstructorWorks_Test()
        {
            var thunkData32 = new IMAGE_THUNK_DATA(RawStructures.RawThunkData32, 2, false);

            Assert.AreEqual((ulong) 0x33221100, thunkData32.AddressOfData);
            Assert.AreEqual((ulong) 0x33221100, thunkData32.ForwarderString);
            Assert.AreEqual((ulong) 0x33221100, thunkData32.Function);
            Assert.AreEqual((ulong) 0x33221100, thunkData32.Ordinal);
        }