use std::{
io,
os::windows::prelude::{AsRawHandle, RawHandle},
};
pub type RawProcessHandle = RawHandle;
pub trait ProcessHandle: AsRawHandle + FromRawProcessHandle {
fn try_clone(&self) -> io::Result<Self>
where
Self: Sized,
{
Err(io::Error::from(io::ErrorKind::Unsupported))
}
}
pub trait FromRawProcessHandle: Sized {
unsafe fn from_raw_process_handle(handle: RawProcessHandle) -> Self;
}