Class MetaDataHdr
The Meta Data Header is part of the .Net/CLI (COM+ 2) header and is reachable from the .Net/CLI (COM+2) header ImageCor20Header. It contains information about embedded streams (sections) in the .Net assembly.
Namespace: PeNet.Header.Net
Assembly: PeNet.dll
Syntax
public class MetaDataHdr : AbstractStructure
Constructors
| Improve this Doc View SourceMetaDataHdr(IRawFile, Int64)
Create a new Meta Data Header from a PE file.
Declaration
public MetaDataHdr(IRawFile peFile, long offset)
Parameters
Type | Name | Description |
---|---|---|
IRawFile | peFile | PE file which contains a Meta Data Header. |
System.Int64 | offset | Offset of the header start in the PE file. |
Properties
| Improve this Doc View SourceFlags
Reserved flags field. Always 0.
Declaration
public ushort Flags { get; set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
MajorVersion
Major version.
Declaration
public ushort MajorVersion { get; set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
MetaDataStreamsHdrs
Array with all Meta Data Stream Headers.
Declaration
public MetaDataStreamHdr[] MetaDataStreamsHdrs { get; }
Property Value
Type | Description |
---|---|
MetaDataStreamHdr[] |
MinorVersion
Minor version.
Declaration
public ushort MinorVersion { get; set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
Reserved
Reserved. Always 0.
Declaration
public uint Reserved { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Signature
Signature. Always 0x424A5342 in a valid .Net assembly.
Declaration
public uint Signature { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Streams
Number of streams (sections) to follow.
Declaration
public ushort Streams { get; set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
Version
Version number as an UTF-8 string.
Declaration
public string? Version { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |
VersionLength
Length of the UTF-8 version string rounded up to a multiple of 4. For e.g., v1.3.4323
Declaration
public uint VersionLength { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |