Files
BinaryObjectScanner/BurnOutSharp.Models/PortableExecutable/StringFileInfo.cs

44 lines
1.5 KiB
C#
Raw Normal View History

2022-11-09 15:17:53 -08:00
namespace BurnOutSharp.Models.PortableExecutable
{
/// <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 class StringFileInfo
{
/// <summary>
/// The length, in bytes, of the entire StringFileInfo block, including all
/// structures indicated by the Children member.
/// </summary>
public ushort Length;
/// <summary>
/// This member is always equal to zero.
/// </summary>
public ushort ValueLength;
/// <summary>
/// The type of data in the version resource.
/// </summary>
public VersionResourceType ResourceType;
/// <summary>
/// The Unicode string L"StringFileInfo".
/// </summary>
public string Key;
/// <summary>
/// As many zero words as necessary to align the Children member on a 32-bit boundary.
/// </summary>
public ushort Padding;
/// <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>
public StringTable[] Children;
}
}