> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XtfCaptureOutputEnd

> XtfCaptureOutputEnd

# XtfCaptureOutputEnd

停止擷取偵錯輸出。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
void XtfCaptureOutputEnd(
         HANDLE hListen
)  
```

<a id="parametersSection" />

### 參數

*hListen*\
類型: HANDLE

\[in] [XtfCaptureOutputBegin](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfcaptureoutputbegin-xtfapi-xbox-windows-m) 所傳回的接聽程式控制代碼。

<a id="retvalSection" />

### 傳回值

無。

<a id="remarksSection" />

## 備註

使用 [XtfCaptureOutputBegin](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfcaptureoutputbegin-xtfapi-xbox-windows-m) 函式和此函式，開始和停止擷取來自開發主機的一般偵錯輸出。如果您想要監視來自開發主機上特定處理序識別碼的偵錯輸出，請使用偵錯監視器用戶端。如需使用偵錯監視器用戶端的詳細資訊，請參閱 [XtfCreateDebugMonitorClient](/zh-TW/reference/tools/xtf/xtfdebugmonitor/methods/xtfcreatedebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m)。

呼叫此函式並指定 `XtfCaptureOutputBegin` 函式在 `hListen` 中傳回的控制代碼，即可停止擷取偵錯輸出，並釋放與擷取工作階段相關聯的資源。

<Note>您必須呼叫此函式來停止擷取工作階段。否則，擷取工作階段會成為孤立狀態，且與擷取工作階段相關聯的資源不會被釋放，進而造成記憶體流失。</Note>

<a id="requirements" />

## 需求

**標頭:** xtfapi.h

**程式庫:** XtfApi.lib

**支援的平台:** Windows (適用於 XBOX 主機工具)

<a id="seealsoSection" />

## 另請參閱

[IXtfDebugMonitorClient 介面](/zh-TW/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-t)\
[XTF 傳輸錯誤 (NDA 主題)](/zh-TW/tools/tools-console/commandlinetools/xtf-transport-errors)\
[其他 Xtf API](/zh-TW/reference/tools/xtf/xtfapi/atoc-xtfapi)


## Related topics

- [XtfCaptureOutputBegin](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfcaptureoutputbegin-xtfapi-xbox-windows-m.md)
- [PIXEndCapture](/zh-TW/reference/tools/pix3/functions/pixendcapture.md)
- [XtfDebugStringCallback](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfdebugstringcallback-xtfapi-xbox-windows-m.md)
- [XtfDebugStringErrorCallback](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfdebugstringerrorcallback-xtfapi-xbox-windows-m.md)
- [XtfCaptureScreenshot](/zh-TW/reference/tools/xtf/xtfconsolecontrol/functions/xtfcapturescreenshot.md)
