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)
Syntax
'宣告
Function GetConsoleHandlesForProcess ( _
dwPid As UInteger, _
<OutAttribute> ByRef pdwStdInput As ULong, _
<OutAttribute> ByRef pdwStdOutput As ULong, _
<OutAttribute> ByRef pdwStdError As ULong _
) As Integer
'用途
Dim instance As IVsDebugger2
Dim dwPid As UInteger
Dim pdwStdInput As ULong
Dim pdwStdOutput As ULong
Dim pdwStdError As ULong
Dim returnValue As Integer
returnValue = instance.GetConsoleHandlesForProcess(dwPid, _
pdwStdInput, pdwStdOutput, pdwStdError)
int GetConsoleHandlesForProcess(
uint dwPid,
out ulong pdwStdInput,
out ulong pdwStdOutput,
out ulong pdwStdError
)
int GetConsoleHandlesForProcess(
[InAttribute] unsigned int dwPid,
[OutAttribute] unsigned long long% pdwStdInput,
[OutAttribute] unsigned long long% pdwStdOutput,
[OutAttribute] unsigned long long% pdwStdError
)
abstract GetConsoleHandlesForProcess :
dwPid:uint32 *
pdwStdInput:uint64 byref *
pdwStdOutput:uint64 byref *
pdwStdError:uint64 byref -> int
function GetConsoleHandlesForProcess(
dwPid : uint,
pdwStdInput : ulong,
pdwStdOutput : ulong,
pdwStdError : ulong
) : int
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.Int32
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
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.