winmr-api/Models/MemoryRegionInfo.cs
2025-07-03 15:22:40 +03:00

30 lines
849 B
C#

// File: Models/MemoryRegionInfo.cs
using WebmrAPI.Utils;
namespace WebmrAPI.Models
{
public class MemoryRegionInfo : MemoryRegion
{
private WindowsProcess.MemoryState _state = 0;
private WindowsProcess.MemoryPageProtectionState _protect = 0;
private WindowsProcess.MemoryType _type = 0;
public WindowsProcess.MemoryState MemoryState
{
get => LockedGet(ref _state);
set => LockedSet(ref _state, value);
}
public WindowsProcess.MemoryPageProtectionState MemoryPageProtection
{
get => LockedGet(ref _protect);
set => LockedSet(ref _protect, value);
}
public WindowsProcess.MemoryType MemoryType
{
get => LockedGet(ref _type);
set => LockedSet(ref _type, value);
}
}
}