Class IMAGE_RESOURCE_DIRECTORY_ENTRY
The resource directory entry represents one entry (e.g. icon) in a resource directory.
Inherited Members
Namespace: PeNet.Structures
Assembly: PeNet.dll
Syntax
public class IMAGE_RESOURCE_DIRECTORY_ENTRY : AbstractStructure
Constructors
| Improve this Doc View SourceIMAGE_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 SourceDataIsDirectory
True if the entry data is a directory
Declaration
public bool DataIsDirectory { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
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 |
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 |
IsNamedEntry
True if the entry is a resource with a name.
Declaration
public bool IsNamedEntry { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Address of the name if its a named resource.
Declaration
public uint Name { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
OffsetToData
Offset to the data.
Declaration
public uint OffsetToData { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
OffsetToDirectory
Offset to the next directory.
Declaration
public uint OffsetToDirectory { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
ResolvedName
The resolved name as a string if its a named resource.
Declaration
public string ResolvedName { get; }
Property Value
Type | Description |
---|---|
System.String |
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 |
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 |