> ## 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 方法

# IXtfRemoteRunCallback::Input 方法

呼叫以透過標準輸入將文字傳入執行中的遠端可執行檔。

## 語法

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

### 參數

*pbstrText*\
類型：LPBSTR

要透過標準輸入傳送給遠端可執行檔的文字。

### 傳回值

類型：HRESULT

HRESULT 成功或錯誤碼。

## 備註

當 **Input** 函式作為 [IXtfRemoteRunCallback 介面](https://docs.xbox.com/zh-TW/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/interfaces/ixtfremoteruncallback.md)的一部分使用時，可讓您將輸入傳遞給遠端執行的可執行檔。[IXtfRemoteRunCallback 介面](https://docs.xbox.com/zh-TW/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/interfaces/ixtfremoteruncallback.md)則會作為 [IXtfRemoteRunClient::Run](https://docs.xbox.com/zh-TW/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunClient/methods/ixtfremoterunclient_run.md) 函式的參數使用。**IXtfRemoteRunCallback::Input** 由使用者定義。

如需如何處理此 API 所傳回之 LPBSTR 指標的詳細資訊，請參閱[為 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 介面](https://docs.xbox.com/zh-TW/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/interfaces/ixtfremoteruncallback.md)\
[IXtfRemoteRunCallback::Output](https://docs.xbox.com/zh-TW/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/methods/ixtfremoteruncallback_output.md)\
[IXtfRemoteRunClient::Run](https://docs.xbox.com/zh-TW/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunClient/methods/ixtfremoterunclient_run.md)


## Related topics

- [XInputOnGameInputInitialize](https://docs.xbox.com/zh-TW/reference/input/xinputongameinput/functions/xinputongameinputinitialize.md)
- [XInputOnGameInputUninitialize](https://docs.xbox.com/zh-TW/reference/input/xinputongameinput/functions/xinputongameinputuninitialize.md)
- [XInputOnGameInput (API 內容)](https://docs.xbox.com/zh-TW/reference/input/xinputongameinput/xinputongameinput_members.md)
- [XInputEnable](https://docs.xbox.com/zh-TW/reference/input/xinputongameinput/functions/xinputenable.md)
- [GameInputLabel](https://docs.xbox.com/zh-TW/reference/input/gameinput/enums/gameinputlabel.md)
