This method launches a process by means of the debug engine (DE).
out IDebugProcess2 ppProcess
[in] The name of the machine in which to launch the process. Use a null value to specify the local machine.
interface representing the port that the program will run in. IDebugPort2
[in] The name of the executable to be launched.
[in] The arguments to pass to the executable. May be a null value if there are no arguments.
[in] The name of the working directory used by the executable. May be a null value if no working directory is required.
[in] Environment block of NULL-terminated strings, followed by an additional NULL terminator.
[in] The options for the executable.
[in] Specifies the
for a session. LAUNCH_FLAGS
[in] Handle to an alternate input stream. May be 0 if redirection is not required.
[in] Handle to an alternate output stream. May be 0 if redirection is not required.
[in] Handle to an alternate error output stream. May be 0 if redirection is not required.
object that receives debugger events. IDebugEventCallback2
[out] Returns the resulting
object that represents the launched process. IDebugProcess2
If successful, returns
; otherwise, returns an error code. S_OK
Normally, Visual Studio launches a program using the
method and then attaches the debugger to the suspended program. However, there are circumstances in which the debug engine may need to launch a program (for example, if the debug engine is part of an interpreter and the program being debugged is an interpreted language), in which case Visual Studio uses the IDebugPortEx2::LaunchSuspended IDebugEngineLaunch2::LaunchSuspended method.
method is called to start the process after the process has been successfully launched in a suspended state. IDebugEngineLaunch2::ResumeProcess