> ## 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.

# Output

> IXtfRemoteRunCallback::Output 方法

# IXtfRemoteRunCallback::Output 方法

呼叫以接收執行中的遠端可執行檔傳送至其標準輸出的文字。

## 語法

```cpp theme={null}
public:
HRESULT Output(
         LPCWSTR pszText
)  
```

### 參數

*pszText*\
類型：LPCWSTR

來自遠端可執行檔的輸出文字。

### 傳回值

類型：HRESULT

HRESULT 成功或錯誤碼。

## 備註

當 `Output` 函式作為 [IXtfRemoteRunCallback 介面](https://devdocs.xbox.com/zh-TW/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/interfaces/ixtfremoteruncallback.md)的一部分使用時，可讓您收集遠端執行之可執行檔的輸出。\
[IXtfRemoteRunCallback 介面](https://devdocs.xbox.com/zh-TW/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/interfaces/ixtfremoteruncallback.md)則會作為 [IXtfRemoteRunClient::Run](https://devdocs.xbox.com/zh-TW/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunClient/methods/ixtfremoterunclient_run.md) 函式的參數使用。
`IXtfRemoteRunCallback::Output` 由使用者定義。

## 需求

**標頭：** xtfremoterun.h

**程式庫：** xtfremoterun.lib

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

## 另請參閱

[IXtfRemoteRunCallback 介面](https://devdocs.xbox.com/zh-TW/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/interfaces/ixtfremoteruncallback.md)\
[IXtfRemoteRunCallback::Input](https://devdocs.xbox.com/zh-TW/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/methods/ixtfremoteruncallback_input.md)\
[IXtfRemoteRunClient::Run](https://devdocs.xbox.com/zh-TW/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunClient/methods/ixtfremoterunclient_run.md)


## Related topics

- [monitoring_output_saved](https://devdocs.xbox.com/zh-TW/services/playfab/api-references/events/MultiplayerServers/monitoring-output-saved.md)
- [OnOutputDebugString](https://devdocs.xbox.com/zh-TW/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorCallback/methods/onoutputdebugstring-ixtfdebugmonitorcallback-xtfdebugmonitor-xbox-microsoft-m.md)
- [GetAutoBreadcrumbsOutput](https://devdocs.xbox.com/zh-TW/reference/graphics/d3d12/interfaces/id3d12deviceremovedextendeddata/methods/id3d12deviceremovedextendeddata_getautobreadcrumbsoutput_public.md)
- [XApuConnectOutputParameters](https://devdocs.xbox.com/zh-TW/reference/audio/xapu/structs/xapuconnectoutputparameters.md)
- [XtfCaptureOutputBegin](https://devdocs.xbox.com/zh-TW/reference/tools/xtf/xtfapi/functions/xtfcaptureoutputbegin-xtfapi-xbox-windows-m.md)
