Show / Hide Table of Contents

Class IMAGE_RESOURCE_DIRECTORY_ENTRY

The resource directory entry represents one entry (e.g. icon) in a resource directory.

Inheritance
System.Object
AbstractStructure
IMAGE_RESOURCE_DIRECTORY_ENTRY
Inherited Members
AbstractStructure.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: PeNet.Structures
Assembly: PeNet.dll
Syntax
public class IMAGE_RESOURCE_DIRECTORY_ENTRY : AbstractStructure

Constructors

| Improve this Doc View Source

IMAGE_RESOURCE_DIRECTORY_ENTRY(Byte[], UInt32, UInt32)

Create a new instance of the IMAGE_RESOURCE_DIRECTORY_ENTRY.

Declaration
public IMAGE_RESOURCE_DIRECTORY_ENTRY(byte[] buff, uint offset, uint resourceDirOffset)
Parameters
Type Name Description
System.Byte[] buff

A PE file as a byte array.

System.UInt32 offset

Raw offset to the entry.

System.UInt32 resourceDirOffset

Raw offset to the resource directory.

Properties

| Improve this Doc View Source

DataIsDirectory

True if the entry data is a directory

Declaration
public bool DataIsDirectory { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

ID

The ID if its a ID resource. You can resolve the ID to a string with Utility.ResolveResourceId(id)

Declaration
public uint ID { get; set; }
Property Value
Type Description
System.UInt32
| Improve this Doc View Source

IsIdEntry

True if the entry is a resource with an ID instead of a name.

Declaration
public bool IsIdEntry { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

IsNamedEntry

True if the entry is a resource with a name.

Declaration
public bool IsNamedEntry { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Name

Address of the name if its a named resource.

Declaration
public uint Name { get; set; }
Property Value
Type Description
System.UInt32
| Improve this Doc View Source

OffsetToData

Offset to the data.

Declaration
public uint OffsetToData { get; set; }
Property Value
Type Description
System.UInt32
| Improve this Doc View Source

OffsetToDirectory

Offset to the next directory.

Declaration
public uint OffsetToDirectory { get; }
Property Value
Type Description
System.UInt32
| Improve this Doc View Source

ResolvedName

The resolved name as a string if its a named resource.

Declaration
public string ResolvedName { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

ResourceDataEntry

Get the Resource Data Entry if the entry is no directory.

Declaration
public IMAGE_RESOURCE_DATA_ENTRY ResourceDataEntry { get; }
Property Value
Type Description
IMAGE_RESOURCE_DATA_ENTRY
| Improve this Doc View Source

ResourceDirectory

Get the Resource Directory which the Directory Entry points to if the Directory Entry has DataIsDirectory set.

Declaration
public IMAGE_RESOURCE_DIRECTORY ResourceDirectory { get; }
Property Value
Type Description
IMAGE_RESOURCE_DIRECTORY
  • Improve this Doc
  • View Source
Back to top Generated by DocFX