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.
32 lines
1.0 KiB
C#
32 lines
1.0 KiB
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.PortableExecutable.Resource.Entries
|
|
{
|
|
/// <summary>
|
|
/// Contains the number of icon or cursor components in a resource group. 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/newheader"/>
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public sealed class NewHeader
|
|
{
|
|
/// <summary>
|
|
/// Reserved; must be zero.
|
|
/// </summary>
|
|
public ushort Reserved;
|
|
|
|
/// <summary>
|
|
/// The resource type. This member must have one of the following values.
|
|
/// - RES_ICON (1): Icon resource type.
|
|
/// - RES_CURSOR (2): Cursor resource type.
|
|
/// </summary>
|
|
public ushort ResType;
|
|
|
|
/// <summary>
|
|
/// The number of icon or cursor components in the resource group.
|
|
/// </summary>
|
|
public ushort ResCount;
|
|
}
|
|
}
|