次の方法で共有


IVsDebugger2.GetOutputHandleForProcess(UInt32, UInt64) Method

Definition

Gets an output handle for a process.

public:
 int GetOutputHandleForProcess(System::UInt32 dwPid, [Runtime::InteropServices::Out] System::UInt64 % pOutputHandle);
int GetOutputHandleForProcess(unsigned int dwPid, [Runtime::InteropServices::Out] unsigned long & pOutputHandle);
public int GetOutputHandleForProcess (uint dwPid, out ulong pOutputHandle);
abstract member GetOutputHandleForProcess : uint32 * uint64 -> int
Public Function GetOutputHandleForProcess (dwPid As UInteger, ByRef pOutputHandle As ULong) As Integer

Parameters

dwPid
UInt32

[in] Process ID of the application.

pOutputHandle
UInt64

[out] Handle to the output device.

Returns

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

Remarks

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.

COM Signature

From vsshell80.idl:

HRESULT GetOutputHandleForProcess(  
    [in] DWORD dwPid,  
    [out] ULONG64 *pOutputHandle  
);  

Applies to