2023-09-04 00:11:04 -04:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
2023-09-04 00:12:49 -04:00
|
|
|
|
namespace SabreTools.Models.PortableExecutable
|
2023-09-04 00:11:04 -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"/>
|
|
|
|
|
|
public sealed class MessageResourceData
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The number of MESSAGE_RESOURCE_BLOCK structures.
|
|
|
|
|
|
/// </summary>
|
2023-09-10 21:24:10 -04:00
|
|
|
|
public uint NumberOfBlocks { get; set; }
|
2023-09-04 00:11:04 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// An array of structures. The array is the size indicated by the NumberOfBlocks member.
|
|
|
|
|
|
/// </summary>
|
2023-09-10 21:24:10 -04:00
|
|
|
|
public MessageResourceBlock?[]? Blocks { get; set; }
|
2023-09-04 00:11:04 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Message resource entries
|
|
|
|
|
|
/// </summary>
|
2023-09-10 21:24:10 -04:00
|
|
|
|
public Dictionary<uint, MessageResourceEntry?>? Entries { get; set; }
|
2023-09-04 00:11:04 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|