コード例 #1
0
 internal void AddInitData(DataConstant cVal) {
                     if (sdata == null) {                    
                             sdata = new Section(sdataName,0xC0000040);   // IMAGE_SCN_CNT  INITIALIZED_DATA, READ, WRITE
                             data = new ArrayList(); 
                     }
   data.Add(cVal);
   cVal.DataOffset = sdata.Tide();
   sdata.IncTide(cVal.GetSize());
 }
コード例 #2
0
    private void InitFileImage(bool makeDLL) {
      doDLL = makeDLL;
                        if (doDLL) {
                                hintNameTable = dllHintNameTable.ToCharArray();
                                characteristics = dllCharacteristics;
                        } else {
                                hintNameTable = exeHintNameTable.ToCharArray();
                                characteristics = exeCharacteristics;
                        }
      text = new Section(textName,0x60000020);     // IMAGE_SCN_CNT  CODE, EXECUTE, READ
//                      rsrc = new Section(rsrcName,0x40000040);     // IMAGE_SCN_CNT  INITIALIZED_DATA, READ
      metaData = new MetaData(this);
    }