IVsDebugger2::GetOutputHandleForProcess Method (UInt32, UInt64)
Visual Studio 2015
Gets an output handle for a process.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int GetOutputHandleForProcess( unsigned int dwPid, [OutAttribute] unsigned long long% pOutputHandle )
Parameters
- dwPid
-
Type:
System::UInt32
[in] Process ID of the application.
- pOutputHandle
-
Type:
System::UInt64
[out] Handle to the output device.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Get a handle to use when redirecting stdout for a Windows Forms application. This will either be the console window or the output window, depending on user settings.
From vsshell80.idl:
HRESULT GetOutputHandleForProcess(
[in] DWORD dwPid,
[out] ULONG64 *pOutputHandle
);
Show: