Files
SabreTools.Models/PortableExecutable/StringTable.cs

47 lines
1.8 KiB
C#
Raw Normal View History

2023-09-04 00:12:49 -04:00
namespace SabreTools.Models.PortableExecutable
2023-09-04 00:11:04 -04:00
{
/// <summary>
/// Represents the organization of data in a file-version resource. It contains language
/// and code page formatting information for the strings specified by the Children member.
/// A code page is an ordered character set.
/// </summary>
/// <see href="https://learn.microsoft.com/en-us/windows/win32/menurc/stringtable"/>
public sealed class StringTable
{
/// <summary>
/// The length, in bytes, of this StringTable structure, including all structures
/// indicated by the Children member.
/// </summary>
2023-09-10 21:24:10 -04:00
public ushort Length { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// This member is always equal to zero.
/// </summary>
2023-09-10 21:24:10 -04:00
public ushort ValueLength { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// The type of data in the version resource.
/// </summary>
2023-09-10 21:24:10 -04:00
public VersionResourceType ResourceType { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// An 8-digit hexadecimal number stored as a Unicode string. The four most significant
/// digits represent the language identifier. The four least significant digits represent
/// the code page for which the data is formatted. Each Microsoft Standard Language
/// identifier contains two parts: the low-order 10 bits specify the major language,
/// and the high-order 6 bits specify the sublanguage.
/// </summary>
2023-09-10 21:24:10 -04:00
public string? Key { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// As many zero words as necessary to align the Children member on a 32-bit boundary.
/// </summary>
2023-09-10 21:24:10 -04:00
public ushort Padding { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// An array of one or more StringData structures.
/// </summary>
2023-09-10 21:24:10 -04:00
public StringData?[]? Children { get; set; }
2023-09-04 00:11:04 -04:00
}
}