30 lines
804 B
C#
30 lines
804 B
C#
// File: Models/MemoryRegionInfo.cs
|
|
|
|
using WebmrAPI.Services;
|
|
|
|
namespace WebmrAPI.Models
|
|
{
|
|
public class MemoryRegionInfo : MemoryRegion
|
|
{
|
|
private WinApi.MemoryState _state = 0;
|
|
private WinApi.MemoryPageProtectionState _protect = 0;
|
|
private WinApi.MemoryType _type = 0;
|
|
|
|
public WinApi.MemoryState MemoryState
|
|
{
|
|
get => LockedGet(ref _state);
|
|
set => LockedSet(ref _state, value);
|
|
}
|
|
public WinApi.MemoryPageProtectionState MemoryPageProtection
|
|
{
|
|
get => LockedGet(ref _protect);
|
|
set => LockedSet(ref _protect, value);
|
|
}
|
|
public WinApi.MemoryType MemoryType
|
|
{
|
|
get => LockedGet(ref _type);
|
|
set => LockedSet(ref _type, value);
|
|
}
|
|
}
|
|
}
|