Skip to main content

exe_write_path

Function exe_write_path 

Source
pub fn exe_write_path(pe: &PeProgram, path: &Path) -> Result<Url>
Expand description

Write a PE program to an EXE file at the specified path

This is a high-level API function that hides the direct usage details of ExeWriter.

§Parameters

  • pe - The PE program to write
  • path - Output file path

§Return Value

Returns the file URL on success, or a GaiaError on failure

§Example


// let pe_program = /* create PE program */;
// let output_path = Path::new("output.exe");
// let url = exe_write_path(&pe_program, output_path)?;