Files
BinaryObjectScanner/BinaryObjectScanner.Models/NewExecutable/ResourceTypeAndNameString.cs

27 lines
883 B
C#
Raw Normal View History

2022-11-04 09:56:06 -07:00
using System.Runtime.InteropServices;
2023-03-07 16:59:14 -05:00
namespace BinaryObjectScanner.Models.NewExecutable
2022-11-04 09:56:06 -07:00
{
/// <summary>
/// Resource type and name strings are stored at the end of the
/// resource table. Note that these strings are NOT null terminated and
/// are case sensitive.
/// </summary>
/// <see href="http://bytepointer.com/resources/win16_ne_exe_format_win3.0.htm"/>
[StructLayout(LayoutKind.Sequential)]
2022-12-27 17:12:55 -08:00
public sealed class ResourceTypeAndNameString
2022-11-04 09:56:06 -07:00
{
/// <summary>
/// Length of the type or name string that follows. A zero value
/// indicates the end of the resource type and name string, also
/// the end of the resource table.
/// </summary>
public byte Length;
/// <summary>
/// ASCII text of the type or name string.
/// </summary>
public byte[] Text;
}
}