Struct winsafe::HPROCESSLIST

source ·
pub struct HPROCESSLIST(/* private fields */);
Available on crate feature kernel only.
Expand description

Handle to a process list snapshot. Originally just a HANDLE.

Trait Implementations§

source§

impl Debug for HPROCESSLIST

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for HPROCESSLIST

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Handle for HPROCESSLIST

source§

const NULL: Self = _

The null, uninitialized handle; equals to 0.
source§

const INVALID: Self = _

The invalid handle; equals to -1. Read more
source§

unsafe fn from_ptr(p: *mut c_void) -> Self

Creates a new handle object by wrapping a pointer. Read more
source§

unsafe fn as_mut(&mut self) -> &mut *mut c_void

Returns a mutable reference to the underlying raw pointer. Read more
source§

unsafe fn raw_copy(&self) -> Self

Returns a raw copy of the underlying handle pointer. Read more
source§

fn ptr(&self) -> *mut c_void

Returns the underlying raw pointer. Read more
source§

fn as_opt(&self) -> Option<&Self>

Returns None if the handle is null or invalid, otherwise returns Some(&self). Read more
source§

impl Hash for HPROCESSLIST

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl LowerHex for HPROCESSLIST

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl PartialEq for HPROCESSLIST

source§

fn eq(&self, other: &HPROCESSLIST) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl UpperHex for HPROCESSLIST

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl kernel_Hprocesslist for HPROCESSLIST

source§

fn iter_heaps(&mut self) -> impl Iterator<Item = SysResult<&HEAPLIST32>> + '_

Returns an iterator over the heaps of a process, with HEAPLIST32 structs. Calls HPROCESSLIST::Heap32ListFirst and then HPROCESSLIST::Heap32ListNext consecutively. Read more
source§

fn iter_modules( &mut self ) -> impl Iterator<Item = SysResult<&MODULEENTRY32>> + '_

Returns an iterator over the modules of a process, with MODULEENTRY32 structs. Calls HPROCESSLIST::Module32First and then HPROCESSLIST::Module32Next consecutively. Read more
source§

fn iter_processes( &mut self ) -> impl Iterator<Item = SysResult<&PROCESSENTRY32>> + '_

Returns an iterator over the processes of a process, with PROCESSENTRY32 structs. Calls HPROCESSLIST::Process32First and then HPROCESSLIST::Process32Next consecutively. Read more
source§

fn iter_threads( &mut self ) -> impl Iterator<Item = SysResult<&THREADENTRY32>> + '_

Returns an iterator over the threads of a process, with THREADENTRY32 structs. Calls HPROCESSLIST::Thread32First and then HPROCESSLIST::Thread32Next consecutively. Read more
source§

fn CreateToolhelp32Snapshot( flags: TH32CS, th32_process_id: Option<u32> ) -> SysResult<CloseHandleGuard<HPROCESSLIST>>

source§

fn Heap32ListFirst(&mut self, hl: &mut HEAPLIST32) -> SysResult<bool>

source§

fn Heap32ListNext(&mut self, hl: &mut HEAPLIST32) -> SysResult<bool>

source§

fn Module32First(&mut self, me: &mut MODULEENTRY32) -> SysResult<bool>

source§

fn Module32Next(&mut self, me: &mut MODULEENTRY32) -> SysResult<bool>

source§

fn Process32First(&mut self, pe: &mut PROCESSENTRY32) -> SysResult<bool>

source§

fn Process32Next(&mut self, pe: &mut PROCESSENTRY32) -> SysResult<bool>

source§

fn Thread32First(&mut self, te: &mut THREADENTRY32) -> SysResult<bool>

source§

fn Thread32Next(&mut self, te: &mut THREADENTRY32) -> SysResult<bool>

source§

impl Eq for HPROCESSLIST

source§

impl Send for HPROCESSLIST

source§

impl StructuralPartialEq for HPROCESSLIST

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.