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 the error message or message box display text for a message table resource.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <see href="https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-message_resource_entry"/>
|
|
|
|
|
|
public sealed class MessageResourceEntry
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The length, in bytes, of the MESSAGE_RESOURCE_ENTRY structure.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public ushort Length { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Indicates that the string is encoded in Unicode, if equal to the value 0x0001.
|
|
|
|
|
|
/// Indicates that the string is encoded in ANSI, if equal to the value 0x0000.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public ushort Flags { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Pointer to an array that contains the error message or message box display text.
|
|
|
|
|
|
/// </summary>
|
2025-10-31 13:59:28 -04:00
|
|
|
|
public string Text { get; set; } = string.Empty;
|
2025-09-26 12:09:34 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|