2025-09-26 12:09:34 -04:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
2025-09-26 13:06:18 -04:00
|
|
|
|
namespace SabreTools.Data.Models.PortableExecutable.Resource.Entries
|
2025-09-26 12:09:34 -04:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Contains information about formatted text for display as an error message or in a message
|
|
|
|
|
|
/// box in a message table resource.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <see href="https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-message_resource_data"/>
|
2026-02-12 13:09:44 -05:00
|
|
|
|
public sealed class MessageResourceData : ResourceDataType
|
2025-09-26 12:09:34 -04:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The number of MESSAGE_RESOURCE_BLOCK structures.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public uint NumberOfBlocks { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// An array of structures. The array is the size indicated by the NumberOfBlocks member.
|
|
|
|
|
|
/// </summary>
|
2025-10-31 13:59:28 -04:00
|
|
|
|
public MessageResourceBlock[] Blocks { get; set; } = [];
|
2025-09-26 12:09:34 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Message resource entries
|
|
|
|
|
|
/// </summary>
|
2025-10-31 13:59:28 -04:00
|
|
|
|
public Dictionary<uint, MessageResourceEntry?> Entries { get; set; } = [];
|
2025-09-26 12:09:34 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|