Expand description
Attach overlays to another process and control them through IPC.
§Example
use std::path::Path;
use std::time::Duration;
use asdf_overlay_client::{inject, OverlayDll};
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let dll = OverlayDll {
x64: Some(Path::new("asdf-overlay-x64.dll")),
x86: Some(Path::new("asdf-overlay-x86.dll")),
arm64: Some(Path::new("asdf-overlay-arm64.dll")),
};
let (mut conn, mut events) = inject(
1234, // target process pid
dll, // overlay dll paths
Some(Duration::from_secs(10)), // timeout for injection and ipc connection
).await?;
// Use `conn` to send requests to overlay, and `events` to receive events from the overlay.
Ok(())
}Re-exports§
pub use asdf_overlay_common as common;
Modules§
- client
- IPC requests and server events.
Structs§
- Overlay
Dll - Overlay DLL paths by target architecture.
Functions§
- inject
- Load the matching overlay DLL into
pidand connect to it.