mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-20 05:03:11 +00:00
This change looks dramatic, but it's just separating out the already-split namespaces into separate top-level folders. In theory, every single one could be built into their own Nuget package. `SabreTools.Serialization` still builds the normal Nuget package that is used by all other projects and includes all namespaces.
28 lines
1.0 KiB
C#
28 lines
1.0 KiB
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.PortableExecutable.Resource.Entries
|
|
{
|
|
/// <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.
|
|
/// </summary>
|
|
/// <see href="https://learn.microsoft.com/en-us/windows/win32/menurc/normalmenuitem"/>
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public sealed class NormalMenuItem : MenuItem
|
|
{
|
|
/// <summary>
|
|
/// The type of menu item.
|
|
/// </summary>
|
|
[MarshalAs(UnmanagedType.U2)]
|
|
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>
|
|
[MarshalAs(UnmanagedType.LPWStr)]
|
|
public string NormalMenuText = string.Empty;
|
|
}
|
|
}
|