ערוך

שתף באמצעות


PEHeaderBuilder Class

Definition

Defines the header for a portable executable (PE) file.

public ref class PEHeaderBuilder sealed
public sealed class PEHeaderBuilder
type PEHeaderBuilder = class
Public NotInheritable Class PEHeaderBuilder
Inheritance
PEHeaderBuilder

Constructors

PEHeaderBuilder(Machine, Int32, Int32, UInt64, Byte, Byte, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, Subsystem, DllCharacteristics, Characteristics, UInt64, UInt64, UInt64, UInt64)

Initializes a new instance of the PEHeader class.

Properties

DllCharacteristics

Returns the dynamic linker library characteristics.

FileAlignment

The alignment factor (in bytes) that is used to align the raw data of sections in the image file. The value should be a power of 2 between 512 and 64K, inclusive. The default is 512. If the section alignment is less than the architecture's page size, then file alignment must match the section alignment.

ImageBase

The preferred address of the first byte of image when loaded into memory; must be a multiple of 64K.

ImageCharacteristics

Returns the image characteristics.

Machine

The target machine's CPU architecture.

MajorImageVersion

The major version number of the image.

MajorLinkerVersion

The linker major version number.

MajorOperatingSystemVersion

The major version number of the required operating system.

MajorSubsystemVersion

The major version number of the subsystem.

MinorImageVersion

The minor version number of the image.

MinorLinkerVersion

The linker minor version number.

MinorOperatingSystemVersion

The minor version number of the required operating system.

MinorSubsystemVersion

The minor version number of the subsystem.

SectionAlignment

The alignment (in bytes) of sections when they are loaded into memory.

SizeOfHeapCommit

The size of the local heap space to commit.

SizeOfHeapReserve

The size of the local heap space to reserve. Only SizeOfHeapCommit is committed; the rest is made available one page at a time until the reserve size is reached.

SizeOfStackCommit

The size of the stack to commit.

SizeOfStackReserve

The size of the stack to reserve. Only SizeOfStackCommit is committed; the rest is made available one page at a time until the reserve size is reached.

Subsystem

The subsystem that is required to run this image.

Methods

CreateExecutableHeader()

Creates an executable header.

CreateLibraryHeader()

Creates a library header.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to