Table of Contents

Struct ResourceDirectoryEntry

Namespace
AsmResolver.PE.Win32Resources
Assembly
AsmResolver.PE.dll

Represents the raw structure of an entry in a directory.

public readonly struct ResourceDirectoryEntry
Inherited Members

Remarks

This structure models the IMAGE_DIRECTORY_ENTRY_RESOURCE structure as described in https://docs.microsoft.com/en-us/windows/win32/debug/pe-format

Constructors

ResourceDirectoryEntry(PEReaderContext, ref BinaryStreamReader)

Reads a new resource directory entry from the reader.

public ResourceDirectoryEntry(PEReaderContext context, ref BinaryStreamReader reader)

Parameters

context PEReaderContext

The containing PE file.

reader BinaryStreamReader

The input stream to read from.

Fields

EntrySize

The size of a single resource directory entry.

public const int EntrySize = 8

Field Value

int

Properties

DataOrSubDirOffset

Gets the offset (relative to the beginning of the resource directory) to the contents of the entry.

public uint DataOrSubDirOffset { get; }

Property Value

uint

IdOrNameOffset

Gets either a 32-integer, or an offset to the name, that identifies the type, name or language ID.

public uint IdOrNameOffset { get; }

Property Value

uint

IsByName

Gets a value indicating whether the resource was exposed by name.

public bool IsByName { get; }

Property Value

bool

IsData

Gets a value indicating whether the resource entry is a data entry or not.

public bool IsData { get; }

Property Value

bool

IsSubDirectory

Gets a value indicating whether the resource entry is a sub directory or not.

public bool IsSubDirectory { get; }

Property Value

bool

Name

Gets the name of the entry (if available).

public string? Name { get; }

Property Value

string

Methods

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.