winmr-api/Models/ProcessModuleInfo.cs

39 lines
1.0 KiB
C#
Raw Normal View History

2025-07-04 00:04:51 +03:00
/* This software is licensed by the MIT License, see LICENSE file */
/* Copyright © 2024-2025 Gregory Lirent */
2025-07-03 15:22:40 +03:00
using System.Text.Json.Serialization;
namespace WebmrAPI.Models
{
public class ProcessModuleInfo : MemoryRegion
{
private string? _moduleName = null;
private string? _fileName = null;
private long _entrypointAddress = 0;
public string? ModuleName
{
get => LockedGet(ref _moduleName);
set => LockedSet(ref _moduleName, value);
}
public string? FileName
{
get => LockedGet(ref _fileName);
set => LockedSet(ref _fileName, value);
}
public string? EntrypointAddress
{
get => (EntrypointRawAddress > 0) ? $"0x{EntrypointRawAddress:X16}" : null;
}
[JsonIgnore]
public long EntrypointRawAddress
{
get => LockedGet(ref _entrypointAddress);
set => LockedSet(ref _entrypointAddress, value);
}
}
}