コード例 #1
0
ファイル: kernel.cs プロジェクト: heihan1/sb250coin
        public static IMAGE_SECTION_HEADER LoadFrom(BinaryReader r)
        {
            IMAGE_SECTION_HEADER h = new IMAGE_SECTION_HEADER();

            h.Name                 = r.ReadBytes(IMAGE_SIZEOF_SHORT_NAME);
            h.VirtualSize          = r.ReadUInt32();
            h.VirtualAddress       = r.ReadUInt32();
            h.SizeOfRawData        = r.ReadUInt32();
            h.PointerToRawData     = r.ReadUInt32();
            h.PointerToRelocations = r.ReadUInt32();
            h.PointerToLinenumbers = r.ReadUInt32();
            h.NumberOfRelocations  = r.ReadUInt16();
            h.PointerToLinenumbers = r.ReadUInt16();
            h.Characteristics      = (SectionCharacteristics)r.ReadUInt32();
            return(h);
        }
コード例 #2
0
ファイル: kernel.cs プロジェクト: ufasoft/coin
        public DWORD VirtualSize; // unioun with PhysicalAddress;

        #endregion Fields

        #region Methods

        public static IMAGE_SECTION_HEADER LoadFrom(BinaryReader r)
        {
            IMAGE_SECTION_HEADER h = new IMAGE_SECTION_HEADER();
            h.Name = r.ReadBytes(IMAGE_SIZEOF_SHORT_NAME);
            h.VirtualSize = r.ReadUInt32();
            h.VirtualAddress = r.ReadUInt32();
            h.SizeOfRawData = r.ReadUInt32();
            h.PointerToRawData = r.ReadUInt32();
            h.PointerToRelocations = r.ReadUInt32();
            h.PointerToLinenumbers = r.ReadUInt32();
            h.NumberOfRelocations = r.ReadUInt16();
            h.PointerToLinenumbers = r.ReadUInt16();
            h.Characteristics = (SectionCharacteristics)r.ReadUInt32();
            return h;
        }