2024-04-23 13:30:43 -04:00
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
|
|
|
|
namespace SabreTools.Models.NewExecutable
|
2023-09-04 00:11:04 -04:00
|
|
|
|
{
|
|
|
|
|
|
/// <see href="http://bytepointer.com/resources/win16_ne_exe_format_win3.0.htm"/>
|
2024-04-23 13:30:43 -04:00
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
2023-09-04 00:11:04 -04:00
|
|
|
|
public sealed class InternalRefRelocationRecord
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Segment number for a fixed segment, or 0FFh for a
|
|
|
|
|
|
/// movable segment.
|
|
|
|
|
|
/// </summary>
|
2024-04-23 13:30:43 -04:00
|
|
|
|
public byte SegmentNumber;
|
2023-09-04 00:11:04 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 0
|
|
|
|
|
|
/// </summary>
|
2024-04-23 13:30:43 -04:00
|
|
|
|
public byte Reserved;
|
2023-09-04 00:11:04 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Offset into segment if fixed segment, or ordinal
|
|
|
|
|
|
/// number index into Entry Table if movable segment.
|
|
|
|
|
|
/// </summary>
|
2024-04-23 13:30:43 -04:00
|
|
|
|
public ushort Offset;
|
2023-09-04 00:11:04 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|