using System.Runtime.InteropServices;
namespace SabreTools.Models.PortableExecutable
{
///
/// One hint/name table suffices for the entire import section.
///
///
[StructLayout(LayoutKind.Sequential)]
public sealed class HintNameTableEntry
{
///
/// An index into the export name pointer table. A match is attempted first
/// with this value. If it fails, a binary search is performed on the DLL's
/// export name pointer table.
///
public ushort Hint;
///
/// An ASCII string that contains the name to import. This is the string that
/// must be matched to the public name in the DLL. This string is case sensitive
/// and terminated by a null byte.
///
[MarshalAs(UnmanagedType.LPStr)]
public string? Name;
}
}