IVsDebugger2.GetConsoleHandlesForProcess 方法

为调试器提供标准控制台处理,以便其他进程可以重为标准处理定向到调试窗口。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop.8.0(在 Microsoft.VisualStudio.Shell.Interop.8.0.dll 中)

语法

声明
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
)

参数

  • pdwStdInput
    类型:System.UInt64%
    [out] 对调试器的标准输入的句柄。
  • pdwStdOutput
    类型:System.UInt64%
    [out] 对调试器的标准输出的句柄。
  • pdwStdError
    类型:System.UInt64%
    [out] 对调试器的标准错误的处理。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 vsshell80.idl:

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

.NET Framework 安全性

请参见

参考

IVsDebugger2 接口

Microsoft.VisualStudio.Shell.Interop 命名空间