Method | Description | |
---|---|---|
AddExternalManagedResource ( |
Add a managed resource from another assembly.
|
|
AddExternalManagedResource ( string resName, AssemblyRef assem, bool isPublic ) : void |
Add a managed resource from another assembly.
|
|
AddExternalManagedResource ( string resName, |
Add a managed resource from another module in this assembly.
|
|
AddExternalManagedResource ( string resName, |
Add a managed resource from another file in this assembly.
|
|
AddManagedResource ( string resName, byte resBytes, bool isPublic ) : void |
Add a managed resource to this PEFile. The resource will be embedded in this PE file.
|
|
AddUnmanagedResources ( string resFilename ) : void |
Add a manifest resource to this PEFile
|
|
GetElement ( uint token ) : |
Get a Meta Data Element from this PE file
|
|
GetFileName ( ) : string | ||
GetImportedAssemblies ( ) : AssemblyRef[] | ||
GetNamesOfImports ( ) : string[] | ||
GetNetVersion ( ) : NetVersion |
Get the version of .NET for this PE file
|
|
GetNetVersionString ( ) : string |
Get the .NET version for this PE file
|
|
GetResource ( string name ) : |
Find a resource
|
|
GetResources ( ) : PERWAPI.ManifestResource[] | ||
GetThisAssembly ( ) : |
Get the descriptor for this assembly. The PEFile must have been created with hasAssembly = true
|
|
MakeDebuggable ( bool allowDebug, bool suppressOpt ) : void |
Makes the assembly debuggable by attaching the DebuggableAttribute to the Assembly. Call immediately before calling WritePEFile.
|
|
MakeExternAssembly ( string assemName ) : AssemblyRef |
Make a descriptor for an external assembly to this PEFile (.assembly extern)
|
|
MakeExternModule ( string name ) : |
Make a descriptor for an external module to this PEFile (.module extern)
|
|
PEFile ( string fileName ) : System |
Create a new PE File with the name "fileName". If "fileName" ends in ".dll" then the file is a dll, otherwise it is an exe file. This PE File has no assembly.
|
|
PEFile ( string fileName, string assemblyName ) : System |
Create a new PE File with the name "fileName". If "fileName" ends in ".dll" then the file is a dll, otherwise it is an exe file. This file has an Assembly called "assemblyName".
|
|
ReadExportedInterface ( string filename ) : |
Read an existing PE File and return the exported interface (ie. anything that was specified as public). All the MetaData structures will be Refs.
|
|
ReadPEFile ( string filename ) : |
Read a PE file and create all the data structures to represent it
|
|
ReadPublicClasses ( string filename ) : |
||
SetCorFlags ( CorFlags flags ) : void |
Set the flags (.corflags)
|
|
SetFileName ( string filename ) : void | ||
SetIsDLL ( bool isDll ) : void |
Specify if this PEFile is a .dll or .exe
|
|
SetNetVersion ( NetVersion nVer ) : void |
Set the .NET version for this PE file
|
|
SetOutputDirectory ( string outputDir ) : void |
Set the directory that the PE File will be written to. The default is the current directory.
|
|
SetOutputStream ( Stream output ) : void |
Direct PE File output to an existing stream, instead of creating a new file.
|
|
SetSubSystem ( SubSystem subS ) : void |
Set the subsystem (.subsystem) (Default is Windows Console mode)
|
|
WriteCILFile ( bool debug ) : void |
Write out a CIL text file for this PE file
|
|
WritePEFile ( bool writePDB ) : void |
Write out the PEFile (the "bake" function)
|
Method | Description | |
---|---|---|
AddToFileList ( ) : void | ||
AddToResourceList ( |
||
BuildMetaData ( ) : void | ||
ReadPDBScope ( |
||
SetDLLFlags ( ushort dflags ) : void | ||
SetThisAssembly ( |
public AddExternalManagedResource ( |
||
mr | ||
isPublic | bool | |
return | void |
public AddExternalManagedResource ( string resName, AssemblyRef assem, bool isPublic ) : void | ||
resName | string | The name of the resource |
assem | AssemblyRef | The assembly where the resource is |
isPublic | bool | Access for the resource |
return | void |
public AddExternalManagedResource ( string resName, |
||
resName | string | The name of the resource |
mod | ||
offset | uint | |
isPublic | bool | Access for the resource |
return | void |
public AddExternalManagedResource ( string resName, |
||
resName | string | The name of the resource |
resFile | ||
offset | uint | |
isPublic | bool | Access for the resource |
return | void |
public AddManagedResource ( string resName, byte resBytes, bool isPublic ) : void | ||
resName | string | The name of the managed resource |
resBytes | byte | The managed resource |
isPublic | bool | Access for the resource |
return | void |
public AddUnmanagedResources ( string resFilename ) : void | ||
resFilename | string | |
return | void |
public GetElement ( uint token ) : |
||
token | uint | The meta data token for the required element |
return |
public GetImportedAssemblies ( ) : AssemblyRef[] | ||
return | AssemblyRef[] |
public GetResource ( string name ) : |
||
name | string | The name of the resource |
return |
public GetResources ( ) : PERWAPI.ManifestResource[] | ||
return | PERWAPI.ManifestResource[] |
public MakeDebuggable ( bool allowDebug, bool suppressOpt ) : void | ||
allowDebug | bool | set true to enable debugging, false otherwise |
suppressOpt | bool | set true to disable optimizations that affect debugging |
return | void |
public MakeExternAssembly ( string assemName ) : AssemblyRef | ||
assemName | string | the external assembly name |
return | AssemblyRef |
public MakeExternModule ( string name ) : |
||
name | string | the external module name |
return |
public PEFile ( string fileName ) : System | ||
fileName | string | Name for the output file. |
return | System |
public PEFile ( string fileName, string assemblyName ) : System | ||
fileName | string | Name for the output file |
assemblyName | string | Name of the assembly |
return | System |
public static ReadExportedInterface ( string filename ) : |
||
filename | string | The name of the pe file |
return |
public static ReadPEFile ( string filename ) : |
||
filename | string | The file name of the PE file |
return |
public static ReadPublicClasses ( string filename ) : |
||
filename | string | |
return |
public SetCorFlags ( CorFlags flags ) : void | ||
flags | CorFlags | the flags value |
return | void |
public SetFileName ( string filename ) : void | ||
filename | string | |
return | void |
public SetNetVersion ( NetVersion nVer ) : void | ||
nVer | NetVersion | .NET version |
return | void |
public SetOutputDirectory ( string outputDir ) : void | ||
outputDir | string | The directory to write the PE File to. |
return | void |
public SetOutputStream ( Stream output ) : void | ||
output | Stream | The output stream |
return | void |
public SetSubSystem ( SubSystem subS ) : void | ||
subS | SubSystem | subsystem value |
return | void |
public WriteCILFile ( bool debug ) : void | ||
debug | bool | include debug information |
return | void |