Add PE resource classes

This commit is contained in:
Matt Nadareski
2022-11-05 22:45:18 -07:00
parent 0dc4f0f11a
commit 94ce87d953
5 changed files with 165 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
namespace BurnOutSharp.Models.PortableExecutable
{
/// <summary>
/// The resource directory string area consists of Unicode strings, which
/// are word-aligned. These strings are stored together after the last
/// Resource Directory entry and before the first Resource Data entry.
/// This minimizes the impact of these variable-length strings on the
/// alignment of the fixed-size directory entries.
/// </summary>
/// <see href="https://learn.microsoft.com/en-us/windows/win32/debug/pe-format"/>
public class ResourceDirectoryString
{
/// <summary>
/// The size of the string, not including length field itself.
/// </summary>
public ushort Length;
/// <summary>
/// The variable-length Unicode string data, word-aligned.
/// </summary>
public byte[] UnicodeString;
}
}