mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-09-22 23:05:03 +00:00
Add simple NE tables
This commit is contained in:
28
BurnOutSharp.Models/NewExecutable/ImportedNameTableEntry.cs
Normal file
28
BurnOutSharp.Models/NewExecutable/ImportedNameTableEntry.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace BurnOutSharp.Models.NewExecutable
|
||||
{
|
||||
/// <summary>
|
||||
/// The imported-name table follows the module-reference table. This table
|
||||
/// contains the names of modules and procedures that are imported by the
|
||||
/// executable file. Each entry is composed of a 1-byte field that
|
||||
/// contains the length of the string, followed by any number of
|
||||
/// characters. The 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)]
|
||||
public class ImportedNameTableEntry
|
||||
{
|
||||
/// <summary>
|
||||
/// Length of the name string that follows. A zero value indicates
|
||||
/// the end of the name table.
|
||||
/// </summary>
|
||||
public byte Length;
|
||||
|
||||
/// <summary>
|
||||
/// ASCII text of the name string.
|
||||
/// </summary>
|
||||
public byte[] NameString;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user