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

# Input

> IXtfRemoteRunCallback::Input Method

# IXtfRemoteRunCallback::Input Method

调用此方法以通过标准输入将文本传递到正在运行的远程可执行文件中。

## 语法

```cpp theme={null}
public:
HRESULT Input(
         LPBSTR pbstrText
)  
```

### 参数

*pbstrText*\
类型：LPBSTR

要通过标准输入发送到远程可执行文件的文本。

### 返回值

类型：HRESULT

HRESULT 成功或错误代码。

## 备注

**Input** 函数在作为 [IXtfRemoteRunCallback Interface](https://docs.xbox.com/zh-CN/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/interfaces/ixtfremoteruncallback.md) 的一部分使用时，允许你将输入传递给远程运行的可执行文件。[IXtfRemoteRunCallback Interface](https://docs.xbox.com/zh-CN/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/interfaces/ixtfremoteruncallback.md) 又用作 [IXtfRemoteRunClient::Run](https://docs.xbox.com/zh-CN/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunClient/methods/ixtfremoterunclient_run.md) 函数的参数。**IXtfRemoteRunCallback::Input** 由用户定义。

有关如何处理此 API 返回的 LPBSTR 指针的详细信息，请参阅 [Allocating and Releasing Memory for a BSTR](https://learn.microsoft.com/cpp/atl-mfc-shared/allocating-and-releasing-memory-for-a-bstr?view=vs-2019)。

## 要求

**头文件：** xtfremoterun.h

**库：** xtfremoterun.lib

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

## 另请参阅

[IXtfRemoteRunCallback Interface](https://docs.xbox.com/zh-CN/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/interfaces/ixtfremoteruncallback.md)\
[IXtfRemoteRunCallback::Output](https://docs.xbox.com/zh-CN/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/methods/ixtfremoteruncallback_output.md)\
[IXtfRemoteRunClient::Run](https://docs.xbox.com/zh-CN/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunClient/methods/ixtfremoterunclient_run.md)


## Related topics

- [XInputOnGameInputInitialize](https://docs.xbox.com/zh-CN/reference/input/xinputongameinput/functions/xinputongameinputinitialize.md)
- [XInputOnGameInputUninitialize](https://docs.xbox.com/zh-CN/reference/input/xinputongameinput/functions/xinputongameinputuninitialize.md)
- [XInputOnGameInput（API 内容）](https://docs.xbox.com/zh-CN/reference/input/xinputongameinput/xinputongameinput_members.md)
- [XInputEnable](https://docs.xbox.com/zh-CN/reference/input/xinputongameinput/functions/xinputenable.md)
- [从 XInput 移植到 GameInput](https://docs.xbox.com/zh-CN/build/core-features/common/input/porting/input-porting-xinput.md)
