mirror of
https://github.com/SabreTools/SabreTools.Models.git
synced 2026-09-24 07:37:10 +00:00
Migrate many models to StructLayout
This commit is contained in:
@@ -1,27 +1,30 @@
|
||||
namespace SabreTools.Models.PortableExecutable
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace SabreTools.Models.PortableExecutable
|
||||
{
|
||||
/// <summary>
|
||||
/// Contains information about message strings with identifiers in the range indicated
|
||||
/// by the LowId and HighId members.
|
||||
/// </summary>
|
||||
/// <see href="https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-message_resource_block"/>
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public sealed class MessageResourceBlock
|
||||
{
|
||||
/// <summary>
|
||||
/// The lowest message identifier contained within this structure.
|
||||
/// </summary>
|
||||
public uint LowId { get; set; }
|
||||
public uint LowId;
|
||||
|
||||
/// <summary>
|
||||
/// The highest message identifier contained within this structure.
|
||||
/// </summary>
|
||||
public uint HighId { get; set; }
|
||||
public uint HighId;
|
||||
|
||||
/// <summary>
|
||||
/// The offset, in bytes, from the beginning of the MESSAGE_RESOURCE_DATA structure to the
|
||||
/// MESSAGE_RESOURCE_ENTRY structures in this MESSAGE_RESOURCE_BLOCK. The MESSAGE_RESOURCE_ENTRY
|
||||
/// structures contain the message strings.
|
||||
/// </summary>
|
||||
public uint OffsetToEntries { get; set; }
|
||||
public uint OffsetToEntries;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user