Método IVsDebugger2.GetConsoleHandlesForProcess (UInt32, UInt64, UInt64, UInt64)

 

Publicado: abril de 2016

Fornece as alças de console padrão para o depurador para que outro processo pode redirecionar suas alças de padrão para a janela de depuração.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (em Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Sintaxe

int GetConsoleHandlesForProcess(
    uint dwPid,
    out ulong pdwStdInput,
    out ulong pdwStdOutput,
    out ulong pdwStdError
)
int GetConsoleHandlesForProcess(
    unsigned int dwPid,
    [OutAttribute] unsigned long long% pdwStdInput,
    [OutAttribute] unsigned long long% pdwStdOutput,
    [OutAttribute] unsigned long long% pdwStdError
)
abstract GetConsoleHandlesForProcess : 
        dwPid:uint32 *
        pdwStdInput:uint64 byref *
        pdwStdOutput:uint64 byref *
        pdwStdError:uint64 byref -> int
Function GetConsoleHandlesForProcess (
    dwPid As UInteger,
    <OutAttribute> ByRef pdwStdInput As ULong,
    <OutAttribute> ByRef pdwStdOutput As ULong,
    <OutAttribute> ByRef pdwStdError As ULong
) As Integer

Parâmetros

  • dwPid
    [in] O identificador para o processo de host.
  • pdwStdInput
    [out] Identificador para a entrada padrão do depurador.
  • pdwStdOutput
    [out] Identificador para a saída padrão do depurador.
  • pdwStdError
    [out] Manipular o erro de padrão do depurador.

Valor de retorno

Type: System.Int32

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

Comentários

COM assinatura

De vsshell80.idl:

HRESULT IVsDebugger2::GetConsoleHandlesForProcess(
   [in] DWORD dwPid,
   [out] ULONG64 *pdwStdInput,
   [out] ULONG64 *pdwStdOutput
);

Consulte também

Interface IVsDebugger2
Namespace Microsoft.VisualStudio.Shell.Interop

Retornar ao topo