IVsDebugger2::GetConsoleHandlesForProcess Method (UInt32, UInt64, UInt64, UInt64)
Visual Studio 2015
Provides the standard console handles for the debugger so that another process can redirect its standard handles to the debug window.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int GetConsoleHandlesForProcess( unsigned int dwPid, [OutAttribute] unsigned long long% pdwStdInput, [OutAttribute] unsigned long long% pdwStdOutput, [OutAttribute] unsigned long long% pdwStdError )
Parameters
- dwPid
-
Type:
System::UInt32
[in] The identifier for the host process.
- pdwStdInput
-
Type:
System::UInt64
[out] Handle to the debugger's standard input.
- pdwStdOutput
-
Type:
System::UInt64
[out] Handle to the debugger's standard output.
- pdwStdError
-
Type:
System::UInt64
[out] Handle to the debugger's standard error.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell80.idl:
HRESULT IVsDebugger2::GetConsoleHandlesForProcess(
[in] DWORD dwPid,
[out] ULONG64 *pdwStdInput,
[out] ULONG64 *pdwStdOutput
);
Show: