pub struct ParentProcess { /* private fields */ }Expand description
A process handle validated for use as PROC_THREAD_ATTRIBUTE_PARENT_PROCESS.
Implementations§
Source§impl ParentProcess
impl ParentProcess
Sourcepub fn open(pid: u32) -> Result<Self>
pub fn open(pid: u32) -> Result<Self>
Opens a process with process-creation and handle-duplication rights.
§Errors
Returns an error if the PID cannot be opened with the required rights.
Sourcepub fn from_handle(handle: OwnedHandle) -> Result<Self>
pub fn from_handle(handle: OwnedHandle) -> Result<Self>
Adopts and validates an existing process handle.
§Errors
Returns an error if the handle does not identify a process.
Trait Implementations§
Source§impl AsHandle for ParentProcess
impl AsHandle for ParentProcess
Source§fn as_handle(&self) -> BorrowedHandle<'_>
fn as_handle(&self) -> BorrowedHandle<'_>
Borrows the handle. Read more
Auto Trait Implementations§
impl Freeze for ParentProcess
impl RefUnwindSafe for ParentProcess
impl Send for ParentProcess
impl Sync for ParentProcess
impl Unpin for ParentProcess
impl UnsafeUnpin for ParentProcess
impl UnwindSafe for ParentProcess
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