PEAPI

PEFile Methods

The methods of the PEFile class are listed below. For a complete list of PEFile class members, see the PEFile Members topic.

Public Instance Methods

AddClassOverloaded. Add a class to this module
AddExternAssembly Add an external assembly to this PEFile (.assembly extern)
AddExternModule Add an external module to this PEFile (.module extern)
AddFieldOverloaded. Add a "global" field to this module
AddFile
AddManifestResource Add a manifest resource to this PEFile NOT YET IMPLEMENTED
AddMethodOverloaded. Add a "global" method to this module
AddValueClass Add a class which extends System.ValueType to this module
Equals (inherited from Object)Select the method name to go to the Microsoft documentation.
GetHashCode (inherited from Object)Select the method name to go to the Microsoft documentation.
GetThisAssembly Get the descriptor for this assembly. The PEFile must have been created with hasAssembly = true
GetThisModule Get the descriptor of this module
GetType (inherited from Object)Select the method name to go to the Microsoft documentation.
SetCorFlags Set the flags (.corflags)
SetSubSystem Set the subsystem (.subsystem) (Default is Windows Console mode)
ToString (inherited from Object)Select the method name to go to the Microsoft documentation.
WritePEFile Write out the PEFile (the "bake" function)

Protected Instance Methods

Finalize (inherited from Object)Select the method name to go to the Microsoft documentation.
MemberwiseClone (inherited from Object)Select the method name to go to the Microsoft documentation.

See Also

PEFile Class | PEAPI Namespace