Add PE accelerator table

This commit is contained in:
Matt Nadareski
2022-11-09 12:05:30 -08:00
parent ac514fce30
commit 5c3e8c35c4
3 changed files with 24 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ namespace BurnOutSharp.Models.PortableExecutable
/// </summary>
/// <see href="https://learn.microsoft.com/en-us/windows/win32/menurc/acceltableentry"/>
[StructLayout(LayoutKind.Sequential)]
public class AcceleratorTableEntryResource
public class AcceleratorTableEntry
{
/// <summary>
/// Describes keyboard accelerator characteristics.

View File

@@ -0,0 +1,20 @@
namespace BurnOutSharp.Models.PortableExecutable
{
/// <summary>
/// An accelerator table is one resource entry in a resource file. The structure definition
/// provided here is for explanation only; it is not present in any standard header file.
/// </summary>
/// <see href="https://learn.microsoft.com/en-us/windows/win32/menurc/resource-file-formats"/>
public class AcceleratorTableResource
{
/// <summary>
/// Each entry consists of a resource header and the data for that resource.
/// </summary>
public ResourceHeader ResourceHeader;
/// <summary>
/// Accelerator table data
/// </summary>
public AcceleratorTableEntry[] AcceleratorTable;
}
}