Example #1
0
        public static IMAGE_FILE_HEADER LoadFrom(BinaryReader r)
        {
            IMAGE_FILE_HEADER h = new IMAGE_FILE_HEADER();

            h.Machine              = (MachineType)r.ReadUInt16();
            h.NumberOfSections     = r.ReadUInt16();
            h.TimeDateStamp        = r.ReadUInt32();
            h.PointerToSymbolTable = r.ReadUInt32();
            h.NumberOfSymbols      = r.ReadUInt32();
            h.SizeOfOptionalHeader = r.ReadUInt16();
            h.Characteristics      = r.ReadUInt16();
            return(h);
        }
Example #2
0
 public static IMAGE_FILE_HEADER LoadFrom(BinaryReader r)
 {
     IMAGE_FILE_HEADER h = new IMAGE_FILE_HEADER();
     h.Machine = (MachineType)r.ReadUInt16();
     h.NumberOfSections = r.ReadUInt16();
     h.TimeDateStamp = r.ReadUInt32();
     h.PointerToSymbolTable = r.ReadUInt32();
     h.NumberOfSymbols = r.ReadUInt32();
     h.SizeOfOptionalHeader = r.ReadUInt16();
     h.Characteristics = r.ReadUInt16();
     return h;
 }