Metoda IVsDebugger2.GetOutputHandleForProcess — (UInt32, UInt64)
Pobiera dojścia do wyjścia dla procesem.
Przestrzeń nazw: Microsoft.VisualStudio.Shell.Interop
Zestaw: Microsoft.VisualStudio.Shell.Interop.8.0 (w Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Składnia
int GetOutputHandleForProcess(
uint dwPid,
out ulong pOutputHandle
)
int GetOutputHandleForProcess(
unsigned int dwPid,
[OutAttribute] unsigned long long% pOutputHandle
)
abstract GetOutputHandleForProcess :
dwPid:uint32 *
pOutputHandle:uint64 byref -> int
Function GetOutputHandleForProcess (
dwPid As UInteger,
<OutAttribute> ByRef pOutputHandle As ULong
) As Integer
Parametry
dwPid
Type: System.UInt32[in] Identyfikator procesu aplikacji.
pOutputHandle
Type: System.UInt64[out] Dojście do urządzenia wyjściowego.
Wartość zwracana
Type: System.Int32
Jeśli metoda zakończy się pomyślnie, zwraca S_OK. Jeśli nie, zwraca kod błędu.
Uwagi
Uzyskać dojścia do użycia podczas przekierowywania stdout dla aplikacji Windows Forms. Będzie okno konsoli lub w oknie dane wyjściowe, w zależności od ustawień użytkownika.
Podpis COM
Z vsshell80.idl:
HRESULT GetOutputHandleForProcess(
[in] DWORD dwPid,
[out] ULONG64 *pOutputHandle
);
Zobacz też
Interfejs IVsDebugger2
Przestrzeń nazw Microsoft.VisualStudio.Shell.Interop
Powrót do początku