Files
SabreTools.Models/NewExecutable/NonResidentNameTableEntry.cs

36 lines
1.2 KiB
C#
Raw Permalink Normal View History

namespace SabreTools.Models.NewExecutable
2023-09-04 00:11:04 -04:00
{
/// <summary>
/// The nonresident-name table follows the entry table, and contains a
/// module description and nonresident exported procedure name strings.
/// The first string in this table is a module description. These name
/// strings are case-sensitive and are not null-terminated. The name
/// strings follow the same format as those defined in the resident name
/// table.
/// </summary>
/// <see href="http://bytepointer.com/resources/win16_ne_exe_format_win3.0.htm"/>
public sealed class NonResidentNameTableEntry
{
/// <summary>
/// Length of the name string that follows. A zero value indicates
/// the end of the name table.
/// </summary>
2023-09-10 21:24:10 -04:00
public byte Length { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// ASCII text of the name string.
/// </summary>
2023-09-04 21:14:41 -04:00
#if NET48
2023-09-10 21:24:10 -04:00
public byte[] NameString { get; set; }
2023-09-04 21:14:41 -04:00
#else
2023-09-10 21:24:10 -04:00
public byte[]? NameString { get; set; }
2023-09-04 21:14:41 -04:00
#endif
2023-09-04 00:11:04 -04:00
/// <summary>
/// Ordinal number (index into entry table). This value is ignored
/// for the module name.
/// </summary>
2023-09-10 21:24:10 -04:00
public ushort OrdinalNumber { get; set; }
2023-09-04 00:11:04 -04:00
}
}