コード例 #1
0
 public override void SaveToDisk(string fileName)
 {
     try
     {
         using (BinaryWriter writer = new BinaryWriter(new FileStream(fileName, FileMode.Create, FileAccess.Write)))
         {
             DOSHeader.AppendToStream(writer);
             writer.Write(DOS_Stub);
             PEHeader.AppendToStream(writer);
             AppendSections(writer);
         }
     }
     catch { }
 }