Files
SabreTools.Models/NewExecutable/ResourceTypeInformationEntry.cs

35 lines
1.2 KiB
C#
Raw Normal View History

namespace SabreTools.Models.NewExecutable
2023-09-04 00:11:04 -04:00
{
/// <summary>
/// A table of resource type information blocks follows. The following
/// is the format of each type information block:
/// </summary>
/// <see href="http://bytepointer.com/resources/win16_ne_exe_format_win3.0.htm"/>
public sealed class ResourceTypeInformationEntry
{
/// <summary>
/// Type ID. This is an integer type if the high-order bit is
/// set (8000h); otherwise, it is an offset to the type string,
/// the offset is relative to the beginning of the resource
/// table. A zero type ID marks the end of the resource type
/// information blocks.
/// </summary>
2023-09-10 21:24:10 -04:00
public ushort TypeID { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// Number of resources for this type.
/// </summary>
2023-09-10 21:24:10 -04:00
public ushort ResourceCount { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// Reserved.
/// </summary>
2023-09-10 21:24:10 -04:00
public uint Reserved { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// A table of resources for this type follows.
/// </summary>
2023-09-10 21:24:10 -04:00
public ResourceTypeResourceEntry?[]? Resources { get; set; }
2023-09-04 00:11:04 -04:00
}
}