Add PE message resource models

This commit is contained in:
Matt Nadareski
2022-11-11 15:41:37 -08:00
parent 91eef55173
commit 27d53abd10
3 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
namespace BurnOutSharp.Models.PortableExecutable
{
/// <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 class MessageResourceEntry
{
/// <summary>
/// The length, in bytes, of the MESSAGE_RESOURCE_ENTRY structure.
/// </summary>
public ushort Length;
/// <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;
/// <summary>
/// Pointer to an array that contains the error message or message box display text.
/// </summary>
public string Text;
}
}