IVsDebugger2::GetOutputHandleForProcess Method (UInt32, UInt64)

 

Gets an output handle for a process.

Namespace:   Microsoft.VisualStudio.Shell.Interop
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::Int32

If 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
);
Return to top
Show: