2022-11-11 15:31:00 -08:00
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
2023-03-07 16:59:14 -05:00
|
|
|
|
namespace BinaryObjectScanner.Models.PortableExecutable
|
2022-11-11 15:31:00 -08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Defines the header for an extended menu template. This structure definition 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/menuex-template-header"/>
|
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
2022-12-27 17:12:55 -08:00
|
|
|
|
public sealed class MenuHeaderExtended
|
2022-11-11 15:31:00 -08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The template version number. This member must be 1 for extended menu templates.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public ushort Version;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The offset to the first MENUEX_TEMPLATE_ITEM structure, relative to the end of
|
|
|
|
|
|
/// this structure member. If the first item definition immediately follows the
|
|
|
|
|
|
/// dwHelpId member, this member should be 4.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public ushort Offset;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The help identifier of menu bar.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public uint HelpID;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|