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 version
|
|
|
|
|
|
/// information that can be displayed for a particular language and code page.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <see href="https://learn.microsoft.com/en-us/windows/win32/menurc/stringfileinfo"/>
|
|
|
|
|
|
public sealed class StringFileInfo
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The length, in bytes, of the entire StringFileInfo block, 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>
|
|
|
|
|
|
/// The Unicode string L"StringFileInfo".
|
|
|
|
|
|
/// </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 StringTable structures. Each StringTable structure's Key
|
|
|
|
|
|
/// member indicates the appropriate language and code page for displaying the text in
|
|
|
|
|
|
/// that StringTable structure.
|
|
|
|
|
|
/// </summary>
|
2023-09-10 21:24:10 -04:00
|
|
|
|
public StringTable?[]? Children { get; set; }
|
2023-09-04 00:11:04 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|