C# Class AgaHackTools.Memory.MemoryProtection

Inheritance: IDisposable
显示文件 Open project: aganonki/HackTools

Public Methods

Method Description
ChangeMemoryProtection ( MemoryProtectionFlags protection ) : MemoryProtectionFlags

Changes the protection on a region of committed pages in the virtual address space of a specified process.

Dispose ( ) : void

Restores the initial protection of the memory.

MemoryProtection ( SafeMemoryHandle handle, IntPtr address, int size, bool @internal = true, MemoryProtectionFlags protection = MemoryProtectionFlags.ExecuteReadWrite ) : System

Method Details

ChangeMemoryProtection() public method

Changes the protection on a region of committed pages in the virtual address space of a specified process.
public ChangeMemoryProtection ( MemoryProtectionFlags protection ) : MemoryProtectionFlags
protection MemoryProtectionFlags The memory protection option.
return MemoryProtectionFlags

Dispose() public method

Restores the initial protection of the memory.
public Dispose ( ) : void
return void

MemoryProtection() public method

public MemoryProtection ( SafeMemoryHandle handle, IntPtr address, int size, bool @internal = true, MemoryProtectionFlags protection = MemoryProtectionFlags.ExecuteReadWrite ) : System
handle AgaHackTools.Main.Memory.SafeMemoryHandle
address System.IntPtr
size int
@internal bool
protection MemoryProtectionFlags
return System