Struct winproc::Process[][src]

pub struct Process { /* fields omitted */ }

A handle to a running process.

Methods

impl Process
[src]

Creates a process handle from a PID. Requests all access permissions.

Creates a process handle from a PID. Requests the specified access permissions.

Creates a process handle from a name. Requests all access.

Creates a process handle from a name.

Creates a process handle from a handle.

Returns a handle to the current process.

Returns a reference to the inner handle.

Enumerates all running processes. Requests all access.

Enumerates all running processes.

Returns the process's id.

Returns true if the process is running.

Returns the path of the executable of the process.

Returns the unqualified name of the executable of the process.

Returns the affinity mask of the process.

Sets the affinity mask of the thread. On success, returns the previous affinity mask.

A process affinity mask is a bit vector in which each bit represents a logical processor that a process is allowed to run on.

Setting an affinity mask for a process or thread can result in threads receiving less processor time, as the system is restricted from running the threads on certain processors. In most cases, it is better to let the system select an available processor.

If the new process affinity mask does not specify the processor that is currently running the process, the process is rescheduled on one of the allowable processors.

Returns an iterator over the threads of the process.

Returns an iterator over the ids of threads of the process.

Returns the loaded module with the specified name/path.

Returns a list of the modules of the process.

Returns an iterator over the modules of the process.

Trait Implementations

impl Debug for Process
[src]

Formats the value using the given formatter. Read more

impl AsRawHandle for Process
[src]

Extracts the raw handle, without taking any ownership.

impl Deref for Process
[src]

The resulting type after dereferencing.

Dereferences the value.

impl FromRawHandle for Process
[src]

Constructs a new I/O object from the specified raw handle. Read more

impl IntoRawHandle for Process
[src]

Consumes this object, returning the raw underlying handle. Read more

Auto Trait Implementations

impl !Send for Process

impl !Sync for Process