2025-04-12 18:23:18 +03:00
|
|
|
namespace X86Disassembler.PE;
|
2025-04-12 17:03:04 +03:00
|
|
|
|
2025-04-12 18:23:18 +03:00
|
|
|
/// <summary>
|
|
|
|
/// Represents an Import Descriptor in a PE file
|
|
|
|
/// </summary>
|
|
|
|
public class ImportDescriptor
|
2025-04-12 17:03:04 +03:00
|
|
|
{
|
2025-04-12 18:23:18 +03:00
|
|
|
public uint OriginalFirstThunk; // RVA to original first thunk
|
|
|
|
public uint TimeDateStamp; // Time and date stamp
|
|
|
|
public uint ForwarderChain; // Forwarder chain
|
|
|
|
public uint Name; // RVA to the name of the DLL
|
|
|
|
public string DllName; // The actual name of the DLL
|
|
|
|
public uint FirstThunk; // RVA to first thunk
|
|
|
|
|
|
|
|
public List<ImportedFunction> Functions { get; } = new List<ImportedFunction>();
|
|
|
|
|
2025-04-12 17:03:04 +03:00
|
|
|
/// <summary>
|
2025-04-12 18:23:18 +03:00
|
|
|
/// Initializes a new instance of the ImportDescriptor class
|
2025-04-12 17:03:04 +03:00
|
|
|
/// </summary>
|
2025-04-12 18:23:18 +03:00
|
|
|
public ImportDescriptor()
|
2025-04-12 17:03:04 +03:00
|
|
|
{
|
2025-04-12 18:23:18 +03:00
|
|
|
// Initialize string field to avoid nullability warning
|
|
|
|
DllName = string.Empty;
|
2025-04-12 17:03:04 +03:00
|
|
|
}
|
2025-04-12 18:23:18 +03:00
|
|
|
}
|