Specifies arguments for rebuilding an application.
Ejemplo n.º 1
0
 /// <summary>
 /// Rebuilds the assembly and saves it to the specified file path.
 /// </summary>
 /// <param name="path"></param>
 /// <param name="writingParameters"></param>
 public void Rebuild(string path, WritingParameters writingParameters)
 {
     using (FileStream fileStream = new FileStream(path, FileMode.Create, FileAccess.Write))
     {
         Rebuild(fileStream, writingParameters);
         fileStream.Flush();
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Rebuilds the assembly and writes it to the specified stream.
        /// </summary>
        /// <param name="outputStream"></param>
        /// <param name="writingParameters"></param>
        public void Rebuild(Stream outputStream, WritingParameters writingParameters)
        {
            PEWriter writer = new PEWriter(this, writingParameters);

            writer.WriteExecutable(outputStream);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Rebuilds the assembly and writes it to the specified stream.
        /// </summary>
        /// <param name="outputStream"></param>
        /// <param name="writingParameters"></param>
        public void Rebuild(Stream outputStream, WritingParameters writingParameters)
        {
            PEConstructor constructor = new PEConstructor(this);

            constructor.RebuildAndWrite(writingParameters);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Rebuilds the assembly and writes it to the specified stream.
 /// </summary>
 /// <param name="outputStream"></param>
 /// <param name="writingParameters"></param>
 public void Rebuild(Stream outputStream, WritingParameters writingParameters)
 {
     PEWriter writer = new PEWriter(this, writingParameters);
     writer.WriteExecutable(outputStream);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Rebuilds the assembly and saves it to the specified file path.
 /// </summary>
 /// <param name="path"></param>
 /// <param name="writingParameters"></param>
 public void Rebuild(string path, WritingParameters writingParameters)
 {
     using (FileStream fileStream = new FileStream(path, FileMode.Create, FileAccess.Write))
     {
         Rebuild(fileStream, writingParameters);
         fileStream.Flush();
     }
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Rebuilds the assembly and writes it to the specified stream.
 /// </summary>
 /// <param name="outputStream"></param>
 /// <param name="writingParameters"></param>
 public void Rebuild(Stream outputStream, WritingParameters writingParameters)
 {
     PEConstructor constructor = new PEConstructor(this);
     constructor.RebuildAndWrite(writingParameters);
 }