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
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 byte string from that process (memory address ProcessMemory.Mem) to this process. In that process the string must be array of bytes (not Unicode UTF-16). |
ReadCharString(int, int, bool) | Copies a char string from that process (memory address ProcessMemory.Mem) to this process. In that process the string must be in Unicode UTF-16 format. |
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 |