IVsLaunchPad2.ExecCommandEx Method (String, String, String, UInt32, IVsOutputWindowPane, UInt32, UInt32, String, IVsLaunchPadEvents, IVsLaunchPadOutputParser, UInt32[], String[])
Executes a command with output displayed to an output pane in the IDE and parses the output string in a specified format.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int ExecCommandEx( string pszApplicationName, string pszCommandLine, string pszWorkingDir, uint lpf, IVsOutputWindowPane pOutputWindowPane, uint nTaskItemCategory, uint nTaskItemBitmap, string pszTaskListSubcategory, IVsLaunchPadEvents pVsLaunchPadEvents, IVsLaunchPadOutputParser pOutputParser, uint[] pdwProcessExitCode, string[] pbstrOutput )
Parameters
- pszApplicationName
-
Type:
System.String
[in] Application name that is passed to CreateProcess by the environment.
- pszCommandLine
-
Type:
System.String
[in] Command line string that is passed to CreateProcess by the environment.
- pszWorkingDir
-
Type:
System.String
[in] Working directory that is passed to CreateProcess by the environment. Can be null.
- lpf
-
Type:
System.UInt32
[in] Launch pad flags. All existing values are taken from the _LAUNCHPAD_FLAGS enumeration and all the new values are from _LAUNCHPAD_FLAGS2 enumeration
- pOutputWindowPane
-
Type:
Microsoft.VisualStudio.Shell.Interop.IVsOutputWindowPane
[in] Pointer to the IVsOutputWindowPane interface created by CreatePane.
- nTaskItemCategory
-
Type:
System.UInt32
[in] Task item category, if lpf is set to LPF_PipeStdoutToTaskList. Values are taken from the VSTASKCATEGORY enumeration.
- nTaskItemBitmap
-
Type:
System.UInt32
[in] Task item bitmap, if lpf is set to LPF_PipeStdoutToTaskList.
- pszTaskListSubcategory
-
Type:
System.String
[in] Task list subcategory, if lpf is set to LPF_PipeStdoutToTaskList.
- pVsLaunchPadEvents
-
Type:
Microsoft.VisualStudio.Shell.Interop.IVsLaunchPadEvents
[in] Pointer to the IVsLaunchPadEvents interface
- pOutputParser
-
Type:
Microsoft.VisualStudio.Shell.Interop.IVsLaunchPadOutputParser
[in] Callback for parsing of information from output (may be null).
- pdwProcessExitCode
-
Type:
System.UInt32[]
[out] Value returned by process.
- pbstrOutput
-
Type:
System.String[]
[out] All output that was generated. Can be null.
Return Value
Type: System.Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell80.idl:
HRESULT IVsLaunchPad2::ExecCommandEx( [in] LPCOLESTR pszApplicationName, [in] LPCOLESTR pszCommandLine, [in] LPCOLESTR pszWorkingDir, [in] LAUNCHPAD_FLAGS2 lpf, [in] IVsOutputWindowPane *pOutputWindowPane, [in] ULONG nTaskItemCategory, [in] ULONG nTaskItemBitmap, [in] LPCOLESTR pszTaskListSubcategory, [in] IVsLaunchPadEvents *pVsLaunchPadEvents, [in] IVsLaunchPadOutputParser *pOutputParser, [out] DWORD *pdwProcessExitCode, [out] BSTR *pbstrOutput );