Inheritance: PowerStudio.DebugEngine.DebugProcess
        /// <summary>
        /// This method launches a process by means of the debug DebugEngine (DE).
        /// </summary>
        /// <param name="pszServer">The name of the machine in which to launch the process. Use a null value to specify the local machine.</param>
        /// <param name="pPort">The IDebugPort2 interface representing the port that the program will run in.</param>
        /// <param name="pszExe">The name of the executable to be launched.</param>
        /// <param name="pszArgs">The arguments to pass to the executable. May be a null value if there are no arguments.</param>
        /// <param name="pszDir">The name of the working directory used by the executable. May be a null value if no working directory is required.</param>
        /// <param name="bstrEnv">Environment block of NULL-terminated strings, followed by an additional NULL terminator.</param>
        /// <param name="pszOptions">The options for the executable.</param>
        /// <param name="dwLaunchFlags">Specifies the LAUNCH_FLAGS for a session.</param>
        /// <param name="hStdInput">Handle to an alternate input stream. May be 0 if redirection is not required.</param>
        /// <param name="hStdOutput">Handle to an alternate output stream. May be 0 if redirection is not required.</param>
        /// <param name="hStdError">Handle to an alternate error output stream. May be 0 if redirection is not required.</param>
        /// <param name="pCallback">The IDebugEventCallback2 object that receives debugger events.</param>
        /// <param name="ppProcess">Returns the resulting IDebugProcess2 object that represents the launched process.</param>
        /// <returns>
        /// If successful, returns S_OK; otherwise, returns an error code.
        /// </returns>
        public override int LaunchSuspended(string pszServer,
                                            IDebugPort2 pPort,
                                            string pszExe,
                                            string pszArgs,
                                            string pszDir,
                                            string bstrEnv,
                                            string pszOptions,
                                            enum_LAUNCH_FLAGS dwLaunchFlags,
                                            uint hStdInput,
                                            uint hStdOutput,
                                            uint hStdError,
                                            IDebugEventCallback2 pCallback,
                                            out IDebugProcess2 ppProcess)
        {
            Logger.Debug(string.Empty);
            Process = new PowerShellProcess(pPort);

            ppProcess = Process;
            CreateOrInitializeEventSource(pCallback);
            return(VSConstants.E_NOTIMPL);
        }
 public PowerShellProgramNode( PowerShellProcess process )
 {
     Logger.Debug( string.Empty );
     Process = process;
 }
 public PowerShellProgramNode(PowerShellProcess process)
 {
     Logger.Debug(string.Empty);
     Process = process;
 }
        /// <summary>
        /// This method launches a process by means of the debug DebugEngine (DE).
        /// </summary>
        /// <param name="pszServer">The name of the machine in which to launch the process. Use a null value to specify the local machine.</param>
        /// <param name="pPort">The IDebugPort2 interface representing the port that the program will run in.</param>
        /// <param name="pszExe">The name of the executable to be launched.</param>
        /// <param name="pszArgs">The arguments to pass to the executable. May be a null value if there are no arguments.</param>
        /// <param name="pszDir">The name of the working directory used by the executable. May be a null value if no working directory is required.</param>
        /// <param name="bstrEnv">Environment block of NULL-terminated strings, followed by an additional NULL terminator.</param>
        /// <param name="pszOptions">The options for the executable.</param>
        /// <param name="dwLaunchFlags">Specifies the LAUNCH_FLAGS for a session.</param>
        /// <param name="hStdInput">Handle to an alternate input stream. May be 0 if redirection is not required.</param>
        /// <param name="hStdOutput">Handle to an alternate output stream. May be 0 if redirection is not required.</param>
        /// <param name="hStdError">Handle to an alternate error output stream. May be 0 if redirection is not required.</param>
        /// <param name="pCallback">The IDebugEventCallback2 object that receives debugger events.</param>
        /// <param name="ppProcess">Returns the resulting IDebugProcess2 object that represents the launched process.</param>
        /// <returns>
        /// If successful, returns S_OK; otherwise, returns an error code.
        /// </returns>
        public override int LaunchSuspended( string pszServer,
            IDebugPort2 pPort,
            string pszExe,
            string pszArgs,
            string pszDir,
            string bstrEnv,
            string pszOptions,
            enum_LAUNCH_FLAGS dwLaunchFlags,
            uint hStdInput,
            uint hStdOutput,
            uint hStdError,
            IDebugEventCallback2 pCallback,
            out IDebugProcess2 ppProcess)
        {
            Logger.Debug( string.Empty );
            Process = new PowerShellProcess( pPort );

            ppProcess = Process;
            CreateOrInitializeEventSource( pCallback );
            return VSConstants.E_NOTIMPL;
        }