Show / Hide Table of Contents

Constructor ProcessMemory.ProcessMemory(+ 1 overload)


Overload

Opens process handle and optionally allocates memory in that process.

public ProcessMemory(int processId, int nBytes, bool noException = false)
Parameters
processId  (int)

Process id.

nBytes  (int)

If not 0, allocates memory of this size in that process.

noException  (bool)

Don't throw exceptions. If failed, sets ProcessMemory.ProcessHandle = default.

Exceptions
AuException

Failed to open process handle (usually because of UAC) or allocate memory.


Overload(top)

Opens process handle and optionally allocates memory in that process.

public ProcessMemory(wnd w, int nBytes, bool noException = false)
Parameters
w  (wnd)

A window of that process.

nBytes  (int)

If not 0, allocates memory of this size in that process.

noException  (bool)

Don't throw exceptions. If failed, sets ProcessMemory.ProcessHandle = default.

Exceptions
AuWndException

w invalid.

AuException

Failed to open process handle or allocate memory.