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

# IXtfRemoteRunCallback::Output Method

> IXtfRemoteRunCallback::Output Method

# IXtfRemoteRunCallback::Output Method

调用此方法以接收由正在运行的远程可执行文件发送到其标准输出的文本。

<a id="syntaxSection" />

## 语法

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

<a id="ID4EG" />

<a id="parametersSection" />

### 参数

*pszText*\
类型：LPCWSTR

来自远程可执行文件的输出文本。

<a id="ID4EP" />

<a id="retvalSection" />

### 返回值

类型：HRESULT

HRESULT 成功或错误代码。

<a id="remarks" />

## 备注

`Output` 函数在作为 [IXtfRemoteRunCallback Interface](/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/interfaces/ixtfremoteruncallback) 的一部分使用时，允许你从远程运行的可执行文件收集输出。\
[IXtfRemoteRunCallback Interface](/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/interfaces/ixtfremoteruncallback) 又用作 [IXtfRemoteRunClient::Run](/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunClient/methods/ixtfremoterunclient_run) 函数的参数。
`IXtfRemoteRunCallback::Output` 由用户定义。

<a id="requirements" />

## 要求

**头文件：** xtfremoterun.h

**库：** xtfremoterun.lib

**支持的平台：** Windows（用于 XBOX 主机工具）

## 另请参阅

[IXtfRemoteRunCallback Interface](/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/interfaces/ixtfremoteruncallback)\
[IXtfRemoteRunCallback::Input](/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/methods/ixtfremoteruncallback_input)\
[IXtfRemoteRunClient::Run](/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunClient/methods/ixtfremoterunclient_run)
