mirror of
https://github.com/SabreTools/SabreTools.Models.git
synced 2026-02-14 05:36:27 +00:00
43 lines
1.6 KiB
C#
43 lines
1.6 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace SabreTools.Models.NewExecutable
|
|
{
|
|
/// <summary>
|
|
/// The resource table follows the segment table and contains entries for
|
|
/// each resource in the executable file. The resource table consists of
|
|
/// an alignment shift count, followed by a table of resource records. The
|
|
/// resource records define the type ID for a set of resources. Each
|
|
/// resource record contains a table of resource entries of the defined
|
|
/// type. The resource entry defines the resource ID or name ID for the
|
|
/// resource. It also defines the location and size of the resource. The
|
|
/// following describes the contents of each of these structures:
|
|
/// </summary>
|
|
/// <see href="http://bytepointer.com/resources/win16_ne_exe_format_win3.0.htm"/>
|
|
public sealed class ResourceTable
|
|
{
|
|
/// <summary>
|
|
/// Alignment shift count for resource data.
|
|
/// </summary>
|
|
public ushort AlignmentShiftCount { get; set; }
|
|
|
|
/// <summary>
|
|
/// A table of resource type information blocks follows.
|
|
/// </summary>
|
|
#if NET48
|
|
public ResourceTypeInformationEntry[] ResourceTypes { get; set; }
|
|
#else
|
|
public ResourceTypeInformationEntry?[]? ResourceTypes { get; set; }
|
|
#endif
|
|
|
|
/// <summary>
|
|
/// Resource type and name strings are stored at the end of the
|
|
/// resource table.
|
|
/// </summary>
|
|
#if NET48
|
|
public Dictionary<ushort, ResourceTypeAndNameString> TypeAndNameStrings { get; set; }
|
|
#else
|
|
public Dictionary<ushort, ResourceTypeAndNameString?>? TypeAndNameStrings { get; set; }
|
|
#endif
|
|
}
|
|
}
|