2022-11-04 10:25:48 -07:00
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
2023-03-07 16:59:14 -05:00
|
|
|
|
namespace BinaryObjectScanner.Models.NewExecutable
|
2022-11-04 10:25:48 -07:00
|
|
|
|
{
|
|
|
|
|
|
/// <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 InternalRefRelocationRecord
|
2022-11-04 10:25:48 -07:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Segment number for a fixed segment, or 0FFh for a
|
|
|
|
|
|
/// movable segment.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public byte SegmentNumber;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 0
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public byte Reserved;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Offset into segment if fixed segment, or ordinal
|
|
|
|
|
|
/// number index into Entry Table if movable segment.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public ushort Offset;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|