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
impl Debug for HPROCESSLIST
source§impl Display for HPROCESSLIST
impl Display for HPROCESSLIST
source§impl Handle for HPROCESSLIST
impl Handle for HPROCESSLIST
source§unsafe fn from_ptr(p: *mut c_void) -> Self
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
unsafe fn as_mut(&mut self) -> &mut *mut c_void
Returns a mutable reference to the underlying raw pointer. Read more
source§impl Hash for HPROCESSLIST
impl Hash for HPROCESSLIST
source§impl LowerHex for HPROCESSLIST
impl LowerHex for HPROCESSLIST
source§impl PartialEq for HPROCESSLIST
impl PartialEq for HPROCESSLIST
source§fn eq(&self, other: &HPROCESSLIST) -> bool
fn eq(&self, other: &HPROCESSLIST) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl UpperHex for HPROCESSLIST
impl UpperHex for HPROCESSLIST
source§impl kernel_Hprocesslist for HPROCESSLIST
impl kernel_Hprocesslist for HPROCESSLIST
source§fn iter_heaps(&mut self) -> impl Iterator<Item = SysResult<&HEAPLIST32>> + '_
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 moresource§fn iter_modules(
&mut self
) -> impl Iterator<Item = SysResult<&MODULEENTRY32>> + '_
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 moresource§fn iter_processes(
&mut self
) -> impl Iterator<Item = SysResult<&PROCESSENTRY32>> + '_
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 moresource§fn iter_threads(
&mut self
) -> impl Iterator<Item = SysResult<&THREADENTRY32>> + '_
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 moresource§fn CreateToolhelp32Snapshot(
flags: TH32CS,
th32_process_id: Option<u32>
) -> SysResult<CloseHandleGuard<HPROCESSLIST>>
fn CreateToolhelp32Snapshot( flags: TH32CS, th32_process_id: Option<u32> ) -> SysResult<CloseHandleGuard<HPROCESSLIST>>
CreateToolhelp32Snapshot
function.source§fn Heap32ListFirst(&mut self, hl: &mut HEAPLIST32) -> SysResult<bool>
fn Heap32ListFirst(&mut self, hl: &mut HEAPLIST32) -> SysResult<bool>
HeapList32First
function. Read moresource§fn Heap32ListNext(&mut self, hl: &mut HEAPLIST32) -> SysResult<bool>
fn Heap32ListNext(&mut self, hl: &mut HEAPLIST32) -> SysResult<bool>
HeapList32Next
function. Read moresource§fn Module32First(&mut self, me: &mut MODULEENTRY32) -> SysResult<bool>
fn Module32First(&mut self, me: &mut MODULEENTRY32) -> SysResult<bool>
Module32First
function. Read moresource§fn Module32Next(&mut self, me: &mut MODULEENTRY32) -> SysResult<bool>
fn Module32Next(&mut self, me: &mut MODULEENTRY32) -> SysResult<bool>
Module32Next
function. Read moresource§fn Process32First(&mut self, pe: &mut PROCESSENTRY32) -> SysResult<bool>
fn Process32First(&mut self, pe: &mut PROCESSENTRY32) -> SysResult<bool>
Process32First
function. Read moresource§fn Process32Next(&mut self, pe: &mut PROCESSENTRY32) -> SysResult<bool>
fn Process32Next(&mut self, pe: &mut PROCESSENTRY32) -> SysResult<bool>
Process32Next
function. Read moresource§fn Thread32First(&mut self, te: &mut THREADENTRY32) -> SysResult<bool>
fn Thread32First(&mut self, te: &mut THREADENTRY32) -> SysResult<bool>
Thread32First
function. Read moresource§fn Thread32Next(&mut self, te: &mut THREADENTRY32) -> SysResult<bool>
fn Thread32Next(&mut self, te: &mut THREADENTRY32) -> SysResult<bool>
Thread32First
function. Read moreimpl Eq for HPROCESSLIST
impl Send for HPROCESSLIST
impl StructuralPartialEq for HPROCESSLIST
Auto Trait Implementations§
impl RefUnwindSafe for HPROCESSLIST
impl !Sync for HPROCESSLIST
impl Unpin for HPROCESSLIST
impl UnwindSafe for HPROCESSLIST
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