Compartir a través de


IVsDebugger2.GetConsoleHandlesForProcess Method

Provides the standard console handles for the debugger so that another process can redirect its standard handles to the debug window.

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

Syntax

'Declaration
Function GetConsoleHandlesForProcess ( _
    dwPid As UInteger, _
    <OutAttribute> ByRef pdwStdInput As ULong, _
    <OutAttribute> ByRef pdwStdOutput As ULong, _
    <OutAttribute> ByRef pdwStdError As ULong _
) As Integer
int GetConsoleHandlesForProcess(
    uint dwPid,
    out ulong pdwStdInput,
    out ulong pdwStdOutput,
    out ulong pdwStdError
)
int GetConsoleHandlesForProcess(
    [InAttribute] 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 : uint, 
    pdwStdInput : ulong, 
    pdwStdOutput : ulong, 
    pdwStdError : ulong
) : int

Parameters

  • dwPid
    Type: UInt32

    [in] The identifier for the host process.

  • pdwStdInput
    Type: UInt64%

    [out] Handle to the debugger's standard input.

  • pdwStdOutput
    Type: UInt64%

    [out] Handle to the debugger's standard output.

  • pdwStdError
    Type: UInt64%

    [out] Handle to the debugger's standard error.

Return Value

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

Remarks

COM Signature

From vsshell80.idl:

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

.NET Framework Security

See Also

Reference

IVsDebugger2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace