Επεξεργασία

Κοινή χρήση μέσω


PEHeaders Constructors

Definition

Overloads

PEHeaders(Stream)

Instantiates a new instance of the PEHeaders class that reads the PE headers from the current location in the specified stream.

PEHeaders(Stream, Int32)

Instantiates a new instance of the PEHeaders class that reads the PE headers from a stream that represents a PE image of a specified size.

PEHeaders(Stream, Int32, Boolean)

Instantiates a new instance of the PEHeaders class that reads the PE headers from a stream that represents a PE image of a specified size and indicates whether the PE image has been loaded into memory.

PEHeaders(Stream)

Source:
PEHeaders.cs
Source:
PEHeaders.cs
Source:
PEHeaders.cs
Source:
PEHeaders.cs

Instantiates a new instance of the PEHeaders class that reads the PE headers from the current location in the specified stream.

public:
 PEHeaders(System::IO::Stream ^ peStream);
public PEHeaders (System.IO.Stream peStream);
new System.Reflection.PortableExecutable.PEHeaders : System.IO.Stream -> System.Reflection.PortableExecutable.PEHeaders
Public Sub New (peStream As Stream)

Parameters

peStream
Stream

A stream containing the PE image starting at the stream's current position and ending at the end of the stream.

Exceptions

The data read from the stream has an invalid format.

Error reading from the stream.

The stream does not support seek operations.

peStream is null.

Applies to

PEHeaders(Stream, Int32)

Source:
PEHeaders.cs
Source:
PEHeaders.cs
Source:
PEHeaders.cs
Source:
PEHeaders.cs

Instantiates a new instance of the PEHeaders class that reads the PE headers from a stream that represents a PE image of a specified size.

public:
 PEHeaders(System::IO::Stream ^ peStream, int size);
public PEHeaders (System.IO.Stream peStream, int size);
new System.Reflection.PortableExecutable.PEHeaders : System.IO.Stream * int -> System.Reflection.PortableExecutable.PEHeaders
Public Sub New (peStream As Stream, size As Integer)

Parameters

peStream
Stream

A stream containing PE image of the given size starting at its current position.

size
Int32

The size of the PE image.

Exceptions

The data read from the stream has an invalid format.

Error reading from the stream.

The stream does not support seek operations.

peStream is null.

size is negative or extends past the end of the stream.

Applies to

PEHeaders(Stream, Int32, Boolean)

Source:
PEHeaders.cs
Source:
PEHeaders.cs
Source:
PEHeaders.cs
Source:
PEHeaders.cs

Instantiates a new instance of the PEHeaders class that reads the PE headers from a stream that represents a PE image of a specified size and indicates whether the PE image has been loaded into memory.

public:
 PEHeaders(System::IO::Stream ^ peStream, int size, bool isLoadedImage);
public PEHeaders (System.IO.Stream peStream, int size, bool isLoadedImage);
new System.Reflection.PortableExecutable.PEHeaders : System.IO.Stream * int * bool -> System.Reflection.PortableExecutable.PEHeaders
Public Sub New (peStream As Stream, size As Integer, isLoadedImage As Boolean)

Parameters

peStream
Stream

The stream containing PE image of the given size starting at its current position.

size
Int32

The size of the PE image.

isLoadedImage
Boolean

true if the PE image has been loaded into memory by the OS loader; otherwise, false.

Exceptions

The data read from the stream has invalid format.

Error reading from the stream.

The stream does not support seek operations.

peStream is null.

size is negative or extends past the end of the stream.

Applies to