C# Class refw.Loader

Afficher le fichier Open project: fry/refw

Méthodes publiques

Méthode Description
CreateProcessAndInject ( string process_name, string command_line, string assembly, bool display_errors = false ) : int

Create a new process and inject a managed DLL into it without passing any arguments to the assembly. The process's main thread is launched in a suspended status and the injected assembly is required to call WakeUpProcess once it finished its initialization routine. After injection the normal entry point routine of the assembly will be invoked.

CreateProcessAndInject ( string process_name, string command_line, string assembly, string assembly_args, bool display_errors = false ) : int

Create a new process and inject a managed DLL into it. The process's main thread is launched in a suspended status and the injected assembly is required to call WakeUpProcess once it finished its initialization routine. After injection the normal entry point routine of the assembly will be invoked.

Inject ( int process_id, string assembly, bool display_errors = false ) : void
Inject ( int process_id, string assembly, string assembly_args, bool display_errors = false ) : void
UnloadAndReloadDomain ( ) : void

Private Methods

Méthode Description
BuildCommandLine ( string args ) : string
WakeUpProcess ( ) : void

Method Details

CreateProcessAndInject() public static méthode

Create a new process and inject a managed DLL into it without passing any arguments to the assembly. The process's main thread is launched in a suspended status and the injected assembly is required to call WakeUpProcess once it finished its initialization routine. After injection the normal entry point routine of the assembly will be invoked.
public static CreateProcessAndInject ( string process_name, string command_line, string assembly, bool display_errors = false ) : int
process_name string file name of the executable to launch
command_line string command line arguments to the process, preformatted
assembly string file name of the assembly to inject
display_errors bool whether to display a message box when an error happens (useful for debugging injection errors)
Résultat int

CreateProcessAndInject() public static méthode

Create a new process and inject a managed DLL into it. The process's main thread is launched in a suspended status and the injected assembly is required to call WakeUpProcess once it finished its initialization routine. After injection the normal entry point routine of the assembly will be invoked.
public static CreateProcessAndInject ( string process_name, string command_line, string assembly, string assembly_args, bool display_errors = false ) : int
process_name string file name of the executable to launch
command_line string command line arguments to the process, preformatted
assembly string file name of the assembly to inject
assembly_args string command line arguments to the injected assembly, preformatted
display_errors bool whether to display a message box when an error happens (useful for debugging injection errors)
Résultat int

Inject() public static méthode

public static Inject ( int process_id, string assembly, bool display_errors = false ) : void
process_id int
assembly string
display_errors bool
Résultat void

Inject() public static méthode

public static Inject ( int process_id, string assembly, string assembly_args, bool display_errors = false ) : void
process_id int
assembly string
assembly_args string
display_errors bool
Résultat void

UnloadAndReloadDomain() public static méthode

public static UnloadAndReloadDomain ( ) : void
Résultat void