winmr-api/Models/MemoryRegionInfo.cs

30 lines
804 B
C#
Raw Normal View History

2025-07-02 16:06:50 +03:00
// File: Models/MemoryRegionInfo.cs
2025-07-02 18:13:00 +03:00
using WebmrAPI.Services;
2025-06-30 18:15:07 +03:00
namespace WebmrAPI.Models
{
2025-07-02 16:06:50 +03:00
public class MemoryRegionInfo : MemoryRegion
2025-06-30 18:15:07 +03:00
{
2025-07-02 18:13:00 +03:00
private WinApi.MemoryState _state = 0;
private WinApi.MemoryPageProtectionState _protect = 0;
private WinApi.MemoryType _type = 0;
2025-07-02 16:06:50 +03:00
2025-07-02 18:13:00 +03:00
public WinApi.MemoryState MemoryState
2025-07-02 16:06:50 +03:00
{
get => LockedGet(ref _state);
set => LockedSet(ref _state, value);
}
2025-07-02 18:13:00 +03:00
public WinApi.MemoryPageProtectionState MemoryPageProtection
2025-07-02 16:06:50 +03:00
{
get => LockedGet(ref _protect);
set => LockedSet(ref _protect, value);
}
2025-07-02 18:13:00 +03:00
public WinApi.MemoryType MemoryType
2025-07-02 16:06:50 +03:00
{
get => LockedGet(ref _type);
set => LockedSet(ref _type, value);
}
2025-06-30 18:15:07 +03:00
}
2025-07-02 16:06:50 +03:00
}