Files
BinaryObjectScanner/BinaryObjectScanner.Models/PortableExecutable/AcceleratorTableEntry.cs

35 lines
1.2 KiB
C#
Raw Normal View History

2022-11-09 11:26:21 -08:00
using System.Runtime.InteropServices;
2023-03-07 16:59:14 -05:00
namespace BinaryObjectScanner.Models.PortableExecutable
2022-11-09 11:26:21 -08:00
{
/// <summary>
/// Describes the data in an individual accelerator table resource. 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/acceltableentry"/>
[StructLayout(LayoutKind.Sequential)]
2022-12-27 17:12:55 -08:00
public sealed class AcceleratorTableEntry
2022-11-09 11:26:21 -08:00
{
/// <summary>
/// Describes keyboard accelerator characteristics.
/// </summary>
public AcceleratorTableFlags Flags;
/// <summary>
/// An ANSI character value or a virtual-key code that identifies the accelerator key.
/// </summary>
public ushort Ansi;
/// <summary>
/// An identifier for the keyboard accelerator. This is the value passed to the window
/// procedure when the user presses the specified key.
/// </summary>
public ushort Id;
/// <summary>
/// The number of bytes inserted to ensure that the structure is aligned on a DWORD boundary.
/// </summary>
public ushort Padding;
}
}