2022-11-09 14:19:23 -08:00
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
2023-03-07 16:59:14 -05:00
|
|
|
|
namespace BinaryObjectScanner.Models.PortableExecutable
|
2022-11-09 14:19:23 -08:00
|
|
|
|
{
|
|
|
|
|
|
/// <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)]
|
2022-12-27 17:12:55 -08:00
|
|
|
|
public sealed class NewHeader
|
2022-11-09 14:19:23 -08:00
|
|
|
|
{
|
|
|
|
|
|
/// <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;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|