winmr-api/Models/MemoryRegionInfo.cs

31 lines
951 B
C#
Raw Permalink Normal View History

2025-07-04 00:04:51 +03:00
/* This software is licensed by the MIT License, see LICENSE file */
/* Copyright <20> 2024-2025 Gregory Lirent */
2025-07-02 16:06:50 +03:00
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
}