Export (0) Print
Expand All

IVsLaunchPad2.ExecCommandEx Method

Executes a command with output displayed to an output pane in the IDE and parses the output string in a specified format.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in microsoft.visualstudio.shell.interop.8.0.dll)

int ExecCommandEx (
	[InAttribute] string pszApplicationName,
	[InAttribute] string pszCommandLine,
	[InAttribute] string pszWorkingDir,
	[InAttribute] uint lpf,
	[InAttribute] IVsOutputWindowPane pOutputWindowPane,
	[InAttribute] uint nTaskItemCategory,
	[InAttribute] uint nTaskItemBitmap,
	[InAttribute] string pszTaskListSubcategory,
	[InAttribute] IVsLaunchPadEvents pVsLaunchPadEvents,
	[InAttribute] IVsLaunchPadOutputParser pOutputParser,
	[OptionalAttribute] [OutAttribute] uint[] pdwProcessExitCode,
	[OptionalAttribute] [OutAttribute] string[] pbstrOutput
int ExecCommandEx (
	/** @attribute InAttribute() */ String pszApplicationName, 
	/** @attribute InAttribute() */ String pszCommandLine, 
	/** @attribute InAttribute() */ String pszWorkingDir, 
	/** @attribute InAttribute() */ UInt32 lpf, 
	/** @attribute InAttribute() */ IVsOutputWindowPane pOutputWindowPane, 
	/** @attribute InAttribute() */ UInt32 nTaskItemCategory, 
	/** @attribute InAttribute() */ UInt32 nTaskItemBitmap, 
	/** @attribute InAttribute() */ String pszTaskListSubcategory, 
	/** @attribute InAttribute() */ IVsLaunchPadEvents pVsLaunchPadEvents, 
	/** @attribute InAttribute() */ IVsLaunchPadOutputParser pOutputParser, 
	/** @attribute OutAttribute() */ /** @attribute OptionalAttribute() */ UInt32[] pdwProcessExitCode, 
	/** @attribute OutAttribute() */ /** @attribute OptionalAttribute() */ String[] pbstrOutput
function ExecCommandEx (
	pszApplicationName : String, 
	pszCommandLine : String, 
	pszWorkingDir : String, 
	lpf : uint, 
	pOutputWindowPane : IVsOutputWindowPane, 
	nTaskItemCategory : uint, 
	nTaskItemBitmap : uint, 
	pszTaskListSubcategory : String, 
	pVsLaunchPadEvents : IVsLaunchPadEvents, 
	pOutputParser : IVsLaunchPadOutputParser, 
	pdwProcessExitCode : uint[], 
	pbstrOutput : String[]
) : int



[in] Application name that is passed to CreateProcess by the environment.


[in] Command line string that is passed to CreateProcess by the environment.


[in] Working directory that is passed to CreateProcess by the environment. Can be a null reference (Nothing in Visual Basic).


[in] Launch pad flags. All existing values are taken from the _LAUNCHPAD_FLAGS enumeration and all the new values are from _LAUNCHPAD_FLAGS2 enumeration


[in] Pointer to the IVsOutputWindowPane interface created by CreatePane.


[in] Task item category, if lpf is set to LPF_PipeStdoutToTaskList. Values are taken from the VSTASKCATEGORY enumeration.


[in] Task item bitmap, if lpf is set to LPF_PipeStdoutToTaskList.


[in] Task list subcategory, if lpf is set to LPF_PipeStdoutToTaskList.


[in] Pointer to the IVsLaunchPadEvents interface


[in] Callback for parsing of information from output (may be a null reference (Nothing in Visual Basic)).


[out] Value returned by process.


[out] All output that was generated. Can be a null reference (Nothing in Visual Basic).

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

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

Community Additions

© 2014 Microsoft