38 lines
957 B
C#
38 lines
957 B
C#
// File: Models/ProcessModuleInfo.cs
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|