2023-03-07 16:59:14 -05:00
|
|
|
|
namespace BinaryObjectScanner.Models.PortableExecutable
|
2022-11-11 15:31:00 -08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Contains information about each item in a menu resource that does not open a menu
|
|
|
|
|
|
/// or a submenu. The structure definition provided here is for explanation only; it
|
|
|
|
|
|
/// is not present in any standard header file.
|
|
|
|
|
|
///
|
|
|
|
|
|
/// Contains information about the menu items in a menu resource that open a menu
|
|
|
|
|
|
/// or a submenu. 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/normalmenuitem"/>
|
|
|
|
|
|
/// <see href="https://learn.microsoft.com/en-us/windows/win32/menurc/popupmenuitem"/>
|
2022-12-27 17:12:55 -08:00
|
|
|
|
public sealed class MenuItem
|
2022-11-11 15:31:00 -08:00
|
|
|
|
{
|
|
|
|
|
|
#region NORMALMENUITEM
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The type of menu item.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public MenuFlags NormalResInfo;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// A null-terminated Unicode string that contains the text for this menu item.
|
|
|
|
|
|
/// There is no fixed limit on the size of this string.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string NormalMenuText;
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
#region POPUPMENUITEM
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Describes the menu item.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public MenuFlags PopupItemType;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Describes the menu item.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public MenuFlags PopupState;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// A numeric expression that identifies the menu item that is passed in the
|
|
|
|
|
|
/// WM_COMMAND message.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public uint PopupID;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// A set of bit flags that specify the type of menu item.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public MenuFlags PopupResInfo;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// A null-terminated Unicode string that contains the text for this menu item.
|
|
|
|
|
|
/// There is no fixed limit on the size of this string.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string PopupMenuText;
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|