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

> IXtfRemoteRunCallback::Input 方法

# IXtfRemoteRunCallback::Input 方法

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

<a id="syntaxSection" />

## 語法

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

<a id="ID4EG" />

<a id="parametersSection" />

### 參數

*pbstrText*\
類型：LPBSTR

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

<a id="retvalSection" />

### 傳回值

類型：HRESULT

HRESULT 成功或錯誤碼。

<a id="remarksSection" />

## 備註

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

如需如何處理此 API 所傳回之 LPBSTR 指標的詳細資訊，請參閱[為 BSTR 配置和釋放記憶體](https://learn.microsoft.com/cpp/atl-mfc-shared/allocating-and-releasing-memory-for-a-bstr?view=vs-2019)。

<a id="requirements" />

## 需求

**標頭：** xtfremoterun.h

**程式庫：** xtfremoterun.lib

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

## 另請參閱

[IXtfRemoteRunCallback 介面](/zh-TW/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/interfaces/ixtfremoteruncallback)\
[IXtfRemoteRunCallback::Output](/zh-TW/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/methods/ixtfremoteruncallback_output)\
[IXtfRemoteRunClient::Run](/zh-TW/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunClient/methods/ixtfremoterunclient_run)


## Related topics

- [IXtfRemoteRunCallback::Output 方法](/zh-TW/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/methods/ixtfremoteruncallback_output.md)
- [IXtfRemoteRunCallback 介面](/zh-TW/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/interfaces/ixtfremoteruncallback.md)
- [IXtfRemoteRunClient::Run 方法](/zh-TW/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunClient/methods/ixtfremoterunclient_run.md)
- [XtfCreateRemoteRunClient 方法](/zh-TW/reference/tools/xtf/xtfremoterun/methods/xtfremoterun_xtfcreateremoterunclient.md)
- [IXtfRemoteRunClient 介面](/zh-TW/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunClient/interfaces/ixtfremoterunclient.md)
