morpheus_persistent

Module capture

Source
Expand description

Memory image capture (Future API)

This module defines a higher-level API for capturing and unrelocating PE images.

§Current Status

This API is not yet implemented. The current working implementation uses:

  • PeHeaders::unrelocate_image() in pe/header/pe_headers.rs
  • unrelocate_image() in pe/reloc/unrelocate.rs
  • Direct integration in bootloader/src/installer/operations.rs

This module exists as a future abstraction layer that would provide a cleaner API.

§Future Usage

let captured = MemoryImage::capture_from_memory(image_base, image_size)?;
let bootable = captured.create_bootable_image()?;
esp_backend.store_bootloader(&bootable)?;

Structs§