IVsLaunchPad2.ExecCommandEx(String, String, String, UInt32, IVsOutputWindowPane, UInt32, UInt32, String, IVsLaunchPadEvents, IVsLaunchPadOutputParser, UInt32[], String[]) Método

Definição

Executa um comando com a saída exibida em um painel de saída no IDE e analisa a cadeia de caracteres de saída em um formato especificado.

int ExecCommandEx(std::wstring const & pszApplicationName, std::wstring const & pszCommandLine, std::wstring const & pszWorkingDir, unsigned int lpf, Microsoft::VisualStudio::Shell::Interop::IVsOutputWindowPane const & pOutputWindowPane, unsigned int nTaskItemCategory, unsigned int nTaskItemBitmap, std::wstring const & pszTaskListSubcategory, Microsoft::VisualStudio::Shell::Interop::IVsLaunchPadEvents const & pVsLaunchPadEvents, Microsoft::VisualStudio::Shell::Interop::IVsLaunchPadOutputParser const & pOutputParser, std::Array <unsigned int> const & pdwProcessExitCode, std::Array <std::wstring const &> const & pbstrOutput);
public int ExecCommandEx (string pszApplicationName, string pszCommandLine, string pszWorkingDir, uint lpf, Microsoft.VisualStudio.Shell.Interop.IVsOutputWindowPane pOutputWindowPane, uint nTaskItemCategory, uint nTaskItemBitmap, string pszTaskListSubcategory, Microsoft.VisualStudio.Shell.Interop.IVsLaunchPadEvents pVsLaunchPadEvents, Microsoft.VisualStudio.Shell.Interop.IVsLaunchPadOutputParser pOutputParser, uint[] pdwProcessExitCode, string[] pbstrOutput);
abstract member ExecCommandEx : string * string * string * uint32 * Microsoft.VisualStudio.Shell.Interop.IVsOutputWindowPane * uint32 * uint32 * string * Microsoft.VisualStudio.Shell.Interop.IVsLaunchPadEvents * Microsoft.VisualStudio.Shell.Interop.IVsLaunchPadOutputParser * uint32[] * string[] -> int
Public Function ExecCommandEx (pszApplicationName As String, pszCommandLine As String, pszWorkingDir As String, lpf As UInteger, pOutputWindowPane As IVsOutputWindowPane, nTaskItemCategory As UInteger, nTaskItemBitmap As UInteger, pszTaskListSubcategory As String, pVsLaunchPadEvents As IVsLaunchPadEvents, pOutputParser As IVsLaunchPadOutputParser, Optional pdwProcessExitCode As UInteger(), Optional pbstrOutput As String()) As Integer

Parâmetros

pszApplicationName
String

no Nome do aplicativo que é passado para CreateProcess pelo ambiente.

pszCommandLine
String

no Cadeia de caracteres de linha de comando passada para CreateProcess o ambiente.

pszWorkingDir
String

no Diretório de trabalho que é passado para CreateProcess pelo ambiente. Pode ser null.

lpf
UInt32

no Iniciar sinalizadores de preenchimento. Todos os valores existentes são obtidos da _LAUNCHPAD_FLAGS enumeração e todos os novos valores são de _LAUNCHPAD_FLAGS2 enumeração

pOutputWindowPane
IVsOutputWindowPane

no Ponteiro para a IVsOutputWindowPane interface criada pelo CreatePane(Guid, String, Int32, Int32) .

nTaskItemCategory
UInt32

no Categoria de item de tarefa, se lpf for definido como LPF_PipeStdoutToTaskList . Os valores são obtidos da VSTASKCATEGORY enumeração.

nTaskItemBitmap
UInt32

no Bitmap de item de tarefa, se lpf for definido como LPF_PipeStdoutToTaskList .

pszTaskListSubcategory
String

no A subcategoria da lista de tarefas, se lpf for definida como LPF_PipeStdoutToTaskList .

pVsLaunchPadEvents
IVsLaunchPadEvents

no Ponteiro para a IVsLaunchPadEvents interface

pOutputParser
IVsLaunchPadOutputParser

no Retorno de chamada para análise de informações da saída (pode ser null ).

pdwProcessExitCode
UInt32[]

fora Valor retornado pelo processo.

pbstrOutput
String[]

fora Toda a saída que foi gerada. Pode ser null.

Retornos

Int32

Se o método for bem-sucedido, retornará S_OK. Se falhar, retornará um código de erro.

Comentários

Assinatura COM

De 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  
);  

Aplica-se a