winmr-api/Models/MemoryRegionInfo.cs

30 lines
849 B
C#
Raw Permalink Normal View History

2025-07-02 16:06:50 +03:00
// File: Models/MemoryRegionInfo.cs
2025-07-03 15:22:40 +03:00
using WebmrAPI.Utils;
2025-07-02 18:13:00 +03:00
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-03 15:22:40 +03:00
private WindowsProcess.MemoryState _state = 0;
private WindowsProcess.MemoryPageProtectionState _protect = 0;
private WindowsProcess.MemoryType _type = 0;
2025-07-02 16:06:50 +03:00
2025-07-03 15:22:40 +03:00
public WindowsProcess.MemoryState MemoryState
2025-07-02 16:06:50 +03:00
{
get => LockedGet(ref _state);
set => LockedSet(ref _state, value);
}
2025-07-03 15:22:40 +03:00
public WindowsProcess.MemoryPageProtectionState MemoryPageProtection
2025-07-02 16:06:50 +03:00
{
get => LockedGet(ref _protect);
set => LockedSet(ref _protect, value);
}
2025-07-03 15:22:40 +03:00
public WindowsProcess.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
}