> ## 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 インターフェイス](/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/interfaces/ixtfremoteruncallback)の一部として使用されているときに、リモートで実行される実行ファイルに入力を渡すことができます。[IXtfRemoteRunCallback インターフェイス](/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/interfaces/ixtfremoteruncallback) は、[IXtfRemoteRunClient::Run](/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunClient/methods/ixtfremoterunclient_run) 関数のパラメーターとして使用されます。**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) を参照してください。

<a id="requirements" />

## 要件

**ヘッダー:** xtfremoterun.h

**ライブラリ:** xtfremoterun.lib

**対応プラットフォーム:** Windows (XBOX コンソール ツール用)

## 関連項目

[IXtfRemoteRunCallback インターフェイス](/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/interfaces/ixtfremoteruncallback)\
[IXtfRemoteRunCallback::Output](/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/methods/ixtfremoteruncallback_output)\
[IXtfRemoteRunClient::Run](/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunClient/methods/ixtfremoterunclient_run)


## Related topics

- [IXtfRemoteRunCallback::Output メソッド](/ja-jp/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/methods/ixtfremoteruncallback_output.md)
- [IXtfRemoteRunCallback インターフェイス](/ja-jp/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/interfaces/ixtfremoteruncallback.md)
- [IXtfRemoteRunClient::Run メソッド](/ja-jp/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunClient/methods/ixtfremoterunclient_run.md)
- [XtfCreateRemoteRunClient メソッド](/ja-jp/reference/tools/xtf/xtfremoterun/methods/xtfremoterun_xtfcreateremoterunclient.md)
- [IXtfInputClient::DisconnectGamepad メソッド](/ja-jp/reference/tools/xtf/xtfinput/classes/IXtfInputClient/methods/disconnectgamepad-ixtfinputclient-xtfinput-xbox-windows-m.md)
