pub struct OwnedProcess(_);
Expand description

Represents a handle to a process.

Implementations

Creates process from handle.

Safety

Passed handle must never be used/closed after its move. This structure will close handle by itself when dropped.

Opens process by it’s id.

Searches for runing processes and opens one if found.

Returns an iterator over all modules in the process.

Returns an iterator over running threads in the process. Note Unlike Windows API, this iterator iterates only over process’s threads.

Returns process’s id.

Retrieves process’s image file name.

Panics

If failed to get process’s name (GetProcessImageFileNameW).

Returns an itertor over process’s allocated memory pages

Returns the handle to the process.

Safety

Do not close it and you will be alright.

Converts OwnedProcess into inner HANDLE.

Gets module that contains selected address

Folows offsets’ path, returning a pointer to an offset after.

Retrieves full path to process’s executable.

Searches for a specific pattern in the process’s module. Returns None if failed to find specified pattern. Otherwise returns the address of the first occurence.

Reads process’s memory at address and returns read value.

Reads process’s memory at address and returns read value and amount of bytes read.

Reads process’s memory at address and copy buf.len() bytes into buffer. Returns the amount of bytes read.

Writes process’s memory at address by copying value into the target memory. Returns the amount of bytes written.

Writes process’s memory at address by coping while buffer into the target memory. Returns the amount of bytes written.

Writes process’s memory at address by copying whole buffer into the target memory. Returns the amount of bytes written.

Changes the protection of memory pages of the target process. For more info see microsoft documentation.

Tries to allocate memory pages in the target process. On success returns the address of allocated region.

Tries to free memory pages in the target process.

Queries basic information about memory region at address.

Creates remote thread in the process. On success returns thread’s handle and it’s thread id.

Queries the full path to the module located by the address.

Queries the full path to the module located by the address.

Panics

If the name of the file is not valid UTF-16.

Advanced memory querying

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.