C# Class refw.Loader

ファイルを表示 Open project: fry/refw

Public Methods

Method 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

Method Description
BuildCommandLine ( string args ) : string
WakeUpProcess ( ) : void

Method Details

CreateProcessAndInject() public static method

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)
return int

CreateProcessAndInject() public static method

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)
return int

Inject() public static method

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

Inject() public static method

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
return void

UnloadAndReloadDomain() public static method

public static UnloadAndReloadDomain ( ) : void
return void