pub struct WindowsThread<'a, Driver>{ /* private fields */ }Expand description
A Windows thread.
A thread in Windows is represented by the _ETHREAD structure,
which contains metadata about its execution state, context, and scheduling.
§Implementation Details
Corresponds to _ETHREAD.
Implementations§
Source§impl<'a, Driver> WindowsThread<'a, Driver>
impl<'a, Driver> WindowsThread<'a, Driver>
Sourcepub fn new(
vmi: VmiState<'a, Driver, WindowsOs<Driver>>,
thread: ThreadObject,
) -> Self
pub fn new( vmi: VmiState<'a, Driver, WindowsOs<Driver>>, thread: ThreadObject, ) -> Self
Creates a new Windows thread.
Sourcepub fn process(&self) -> Result<WindowsProcess<'a, Driver>, VmiError>
pub fn process(&self) -> Result<WindowsProcess<'a, Driver>, VmiError>
Returns the process object associated with the thread.
§Implementation Details
Corresponds to _KTHREAD.Process.
Sourcepub fn attached_process(&self) -> Result<WindowsProcess<'a, Driver>, VmiError>
pub fn attached_process(&self) -> Result<WindowsProcess<'a, Driver>, VmiError>
Returns the process attached to the thread.
§Implementation Details
Corresponds to _KTHREAD.ApcState.Process.
Trait Implementations§
Source§impl<'a, Driver> From<WindowsThread<'a, Driver>> for WindowsObject<'a, Driver>
impl<'a, Driver> From<WindowsThread<'a, Driver>> for WindowsObject<'a, Driver>
Source§fn from(value: WindowsThread<'a, Driver>) -> Self
fn from(value: WindowsThread<'a, Driver>) -> Self
Converts to this type from the input type.
Source§impl<'a, Driver> VmiOsThread<'a, Driver> for WindowsThread<'a, Driver>
impl<'a, Driver> VmiOsThread<'a, Driver> for WindowsThread<'a, Driver>
Source§impl<Driver> VmiVa for WindowsThread<'_, Driver>
impl<Driver> VmiVa for WindowsThread<'_, Driver>
Auto Trait Implementations§
impl<'a, Driver> Freeze for WindowsThread<'a, Driver>
impl<'a, Driver> !RefUnwindSafe for WindowsThread<'a, Driver>
impl<'a, Driver> !Send for WindowsThread<'a, Driver>
impl<'a, Driver> !Sync for WindowsThread<'a, Driver>
impl<'a, Driver> Unpin for WindowsThread<'a, Driver>
impl<'a, Driver> !UnwindSafe for WindowsThread<'a, Driver>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more