C# Класс Hackery.MemoryManagement.VirtualProtectHandle

A handle to safely temporarily change memory protection.

The protection is reset when the handle is disposed.

Наследование: IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
Dispose ( ) : void

Resets the memory protection to its previous value.

VirtualProtectHandle ( IntPtr address, int size, MemProtection oldProtection ) : System

Creates a new VirtualProtectHandle instance with the given parameters.

Описание методов

Dispose() публичный Метод

Resets the memory protection to its previous value.
public Dispose ( ) : void
Результат void

VirtualProtectHandle() публичный Метод

Creates a new VirtualProtectHandle instance with the given parameters.
public VirtualProtectHandle ( IntPtr address, int size, MemProtection oldProtection ) : System
address System.IntPtr The address of the first byte that had its protection changed.
size int The size of the memory range with changed protection.
oldProtection MemProtection The previous protection setting.
Результат System