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

> IXtfRemoteRunCallback Interface

# IXtfRemoteRunCallback Interface

提供在通过 [Run](/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunClient/methods/ixtfremoterunclient_run) 重定向远程可执行文件的标准输入或标准输出时使用的回调。

<a id="syntaxSection" />

## 语法

```cpp theme={null}
interface IXtfRemoteRunCallback : public IUnknown  
```

## 方法

| 方法                                                                                                             | 描述                                |
| -------------------------------------------------------------------------------------------------------------- | --------------------------------- |
| [Input](/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/methods/ixtfremoteruncallback_input)   | 调用此方法以通过标准输入将文本传递到正在运行的远程可执行文件中。  |
| [Output](/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/methods/ixtfremoteruncallback_output) | 调用此方法以接收由正在运行的远程可执行文件发送到其标准输出的文本。 |

<a id="requirements" />

## 备注

**IXtfRemoteRunCallback** 接口作为参数传递到 [IXtfRemoteRunClient::Run](/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunClient/methods/ixtfremoterunclient_run)，以防要调用的可执行文件需要输入或写入需要收集的输出。该接口同时包含[输入回调函数](/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/methods/ixtfremoteruncallback_input)和[输出回调函数](/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/methods/ixtfremoteruncallback_output)。可以彼此独立地为它们赋值，以便为可执行文件提供输入或输出读取功能。**IXtfRemoteRunCallback** 接口由用户定义。

## 要求

**头文件：** xtfremoterun.h

**库：** xtfremoterun.lib

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

<a id="ID4E4" />

## 另请参阅

<a id="ID4E6" />

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


## Related topics

- [IXtfRemoteRunCallback::Output Method](/zh-CN/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/methods/ixtfremoteruncallback_output.md)
- [IXtfRemoteRunCallback::Input Method](/zh-CN/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/methods/ixtfremoteruncallback_input.md)
- [IXtfRemoteRunClient Interface](/zh-CN/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunClient/interfaces/ixtfremoterunclient.md)
- [XtfCreateRemoteRunClient Method](/zh-CN/reference/tools/xtf/xtfremoterun/methods/xtfremoterun_xtfcreateremoterunclient.md)
- [IXtfRemoteRunClient::Run Method](/zh-CN/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunClient/methods/ixtfremoterunclient_run.md)
