Export (0) Print
Expand All

IVsDebugger2.GetConsoleHandlesForProcess Method

Provides the standard console handles for the debugger so that another process can redirect its standard handles to the debug window.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in microsoft.visualstudio.shell.interop.8.0.dll)

int GetConsoleHandlesForProcess (
	[InAttribute] uint dwPid,
	out ulong pdwStdInput,
	out ulong pdwStdOutput,
	out ulong pdwStdError
)
int GetConsoleHandlesForProcess (
	/** @attribute InAttribute() */ UInt32 dwPid, 
	/** @attribute OutAttribute() */ /** @ref */ UInt64 pdwStdInput, 
	/** @attribute OutAttribute() */ /** @ref */ UInt64 pdwStdOutput, 
	/** @attribute OutAttribute() */ /** @ref */ UInt64 pdwStdError
)
JScript does not support passing value-type arguments by reference.

Parameters

dwPid

[in] The identifier for the host process.

pdwStdInput

[out] Handle to the debugger's standard input.

pdwStdOutput

[out] Handle to the debugger's standard output.

pdwStdError

[out] Handle to the debugger's standard error.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsshell80.idl:

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

Community Additions

ADD
Show:
© 2014 Microsoft