winstrument 1.0.0

A tiny Rust library to set undocumented Windows process instrumentation callback
1
2
3
4
5
6
7
8
9
10
11
use thiserror::Error;

#[derive(Error, Debug)]
pub enum Error {
    #[error("Failed to load library")]
    LoadLibrary(windows::core::Error),
    #[error("Failed to set instrumentation callback")]
    NtSetInformationProcess(windows::Win32::Foundation::NTSTATUS),
}

pub type Result<T> = std::result::Result<T, Error>;