예제 #1
0
파일: kernel.cs 프로젝트: heihan1/sb250coin
        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);
        }
예제 #2
0
파일: kernel.cs 프로젝트: ufasoft/coin
 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;
 }