Class ProcessMemory
Allocates, writes and reads memory in other process.
public class ProcessMemory : IDisposable
Remarks
Must be disposed. Example: using(var pm=new ProcessMemory(...)) { ... }.
Namespace: Au.More
Assembly: Au.dll
Inheritance
Constructors
| Name | Description |
|---|---|
| ProcessMemory(wnd, int, bool) | Opens process handle and optionally allocates memory in that process. |
| ProcessMemory(int, int, bool) | Opens process handle and optionally allocates memory in that process. |
Properties
| Name | Description |
|---|---|
| Mem | Address in that process used by the read and write functions. |
| MemAllocated | Address of memory allocated in that process. |
| ProcessHandle | Process handle.
Opened with access |
Methods
| Name | Description |
|---|---|
| Dispose() | |
| Dispose(bool) | |
| Read(nint, void*, int) | Copies memory from a known address in that process to this process. |
| Read(void*, int, int) | Copies memory from that process (memory address ProcessMemory.Mem) to this process. |
| ReadByteString(int, int, bool, Encoding) | Copies a |
| ReadCharString(int, int, bool) | Copies a |
| Write(nint, void*, int) | Copies memory from this process to a known address in that process. |
| Write(void*, int, int) | Copies memory from this process to that process (memory address ProcessMemory.Mem). |
| WriteByteString(string, int, Encoding) | Copies a string from this process to that process (memory address ProcessMemory.Mem).
In that process writes the string as |
| WriteCharString(string, int) | Copies a string from this process to that process (memory address ProcessMemory.Mem).
In that process writes the string as |