메소드 | 설명 | |
---|---|---|
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)
|
메소드 | 설명 | |
---|---|---|
AddToFileList ( ) : void | ||
AddToResourceList ( |
||
BuildMetaData ( ) : void | ||
ReadPDBScope ( |
||
SetDLLFlags ( ushort dflags ) : void | ||
SetThisAssembly ( |
public AddExternalManagedResource ( |
||
mr | ||
isPublic | bool | |
리턴 | 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 |
리턴 | void |
public AddExternalManagedResource ( string resName, |
||
resName | string | The name of the resource |
mod | ||
offset | uint | |
isPublic | bool | Access for the resource |
리턴 | void |
public AddExternalManagedResource ( string resName, |
||
resName | string | The name of the resource |
resFile | ||
offset | uint | |
isPublic | bool | Access for the resource |
리턴 | 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 |
리턴 | void |
public AddUnmanagedResources ( string resFilename ) : void | ||
resFilename | string | |
리턴 | void |
public GetElement ( uint token ) : |
||
token | uint | The meta data token for the required element |
리턴 |
public GetResource ( string name ) : |
||
name | string | The name of the resource |
리턴 |
public GetResources ( ) : PERWAPI.ManifestResource[] | ||
리턴 | 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 |
리턴 | void |
public MakeExternAssembly ( string assemName ) : AssemblyRef | ||
assemName | string | the external assembly name |
리턴 | AssemblyRef |
public MakeExternModule ( string name ) : |
||
name | string | the external module name |
리턴 |
public PEFile ( string fileName ) : System | ||
fileName | string | Name for the output file. |
리턴 | System |
public PEFile ( string fileName, string assemblyName ) : System | ||
fileName | string | Name for the output file |
assemblyName | string | Name of the assembly |
리턴 | System |
public static ReadExportedInterface ( string filename ) : |
||
filename | string | The name of the pe file |
리턴 |
public static ReadPEFile ( string filename ) : |
||
filename | string | The file name of the PE file |
리턴 |
public static ReadPublicClasses ( string filename ) : |
||
filename | string | |
리턴 |
public SetCorFlags ( CorFlags flags ) : void | ||
flags | CorFlags | the flags value |
리턴 | void |
public SetNetVersion ( NetVersion nVer ) : void | ||
nVer | NetVersion | .NET version |
리턴 | void |
public SetOutputDirectory ( string outputDir ) : void | ||
outputDir | string | The directory to write the PE File to. |
리턴 | void |
public SetOutputStream ( Stream output ) : void | ||
output | Stream | The output stream |
리턴 | void |
public SetSubSystem ( SubSystem subS ) : void | ||
subS | SubSystem | subsystem value |
리턴 | void |
public WriteCILFile ( bool debug ) : void | ||
debug | bool | include debug information |
리턴 | void |