int IDebugEngineLaunch2.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) { Debug.WriteLine("AD7Engine LaunchSuspended"); ppProcess = new AD7Process(pPort); _node = (ppProcess as AD7Process).Node; _node.FileName = pszExe; _node.ConnectionString = pszArgs; _events = new AD7Events(this, pCallback); // Gets active window handler to use in modals IntPtr handler = GetForegroundWindow(); _node.ParentWindow = new System.Windows.Forms.NativeWindow(); _node.ParentWindow.AssignHandle(handler); return(VSConstants.S_OK); }
public AD7ProgramNode(AD7Process process) { Process = process; Id = Guid.NewGuid(); //ProgramContents = MySql.Debugger.Debugger.NormalizeTag(File.ReadAllText(_filename)); }
int IDebugEngineLaunch2.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) { Debug.WriteLine("AD7Engine LaunchSuspended"); ppProcess = new AD7Process(pPort); _node = (ppProcess as AD7Process).Node; _node.FileName = pszExe; _node.ConnectionString = pszArgs; _events = new AD7Events(this, pCallback); // Gets active window handler to use in modals IntPtr handler = GetForegroundWindow(); _node.ParentWindow = new System.Windows.Forms.NativeWindow(); _node.ParentWindow.AssignHandle(handler); return VSConstants.S_OK; }