vmi-os-windows 0.7.0

Windows OS specific code for VMI
Documentation
use vmi_core::VcpuId;

/// Error types for Windows operations.
#[derive(thiserror::Error, Debug)]
pub enum WindowsError {
    /// Corrupted struct.
    #[error("corrupted struct: {0}")]
    CorruptedStruct(&'static str),

    /// Invalid processor.
    #[error("invalid processor: {0}")]
    InvalidProcessor(VcpuId),

    /// PE parsing error.
    #[error(transparent)]
    Pe(#[from] crate::PeError),
}

impl From<WindowsError> for vmi_core::VmiError {
    fn from(value: WindowsError) -> Self {
        vmi_core::VmiError::Os(value.into())
    }
}