> ## 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](/reference/tools/xtf/xtfapi/functions/xtfcaptureoutputbegin-xtfapi-xbox-windows-m) 返回的侦听器句柄。

<a id="retvalSection" />

### 返回值

无。

<a id="remarksSection" />

## 备注

使用 [XtfCaptureOutputBegin](/reference/tools/xtf/xtfapi/functions/xtfcaptureoutputbegin-xtfapi-xbox-windows-m) 函数和此函数来开始和停止捕获来自开发主机的一般调试输出。如果你想监视开发主机上特定进程 ID 的调试输出，请使用调试监视客户端。有关使用调试监视客户端的更多信息，请参阅 [XtfCreateDebugMonitorClient](/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 接口](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-t)\
[XTF 传输错误 (NDA 主题)](/tools/tools-console/commandlinetools/xtf-transport-errors)\
[其他 Xtf API](/reference/tools/xtf/xtfapi/atoc-xtfapi)


## Related topics

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