IVsDebugger2.GetConsoleHandlesForProcess Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides the standard console handles for the debugger so that another process can redirect its standard handles to the debug window.
public:
int GetConsoleHandlesForProcess(System::UInt32 dwPid, [Runtime::InteropServices::Out] System::UInt64 % pdwStdInput, [Runtime::InteropServices::Out] System::UInt64 % pdwStdOutput, [Runtime::InteropServices::Out] System::UInt64 % pdwStdError);
int GetConsoleHandlesForProcess(unsigned int dwPid, [Runtime::InteropServices::Out] unsigned long & pdwStdInput, [Runtime::InteropServices::Out] unsigned long & pdwStdOutput, [Runtime::InteropServices::Out] unsigned long & pdwStdError);
public int GetConsoleHandlesForProcess (uint dwPid, out ulong pdwStdInput, out ulong pdwStdOutput, out ulong pdwStdError);
abstract member GetConsoleHandlesForProcess : uint32 * uint64 * uint64 * uint64 -> int
Public Function GetConsoleHandlesForProcess (dwPid As UInteger, ByRef pdwStdInput As ULong, ByRef pdwStdOutput As ULong, ByRef pdwStdError As ULong) As Integer
Parameters
- dwPid
- UInt32
[in] The identifier for the host process.
- pdwStdInput
- UInt64
[out] Handle to the debugger's standard input.
- pdwStdOutput
- UInt64
[out] Handle to the debugger's standard output.
- pdwStdError
- UInt64
[out] Handle to the debugger's standard error.
Returns
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
);