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

Called to pass text into the running remote executable via its standard input.

## Syntax

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

### Parameters

*pbstrText*\
Type: LPBSTR

The text to be sent through standard input for the remote executable.

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

The **Input** function allows you to pass input to a remotely run executable when it is used as a part of the [IXtfRemoteRunCallback Interface](https://docs.xbox.com/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/interfaces/ixtfremoteruncallback.md). The [IXtfRemoteRunCallback Interface](https://docs.xbox.com/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/interfaces/ixtfremoteruncallback.md) is in turn used as a parameter for the [IXtfRemoteRunClient::Run](https://docs.xbox.com/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunClient/methods/ixtfremoterunclient_run.md) function. **IXtfRemoteRunCallback::Input** is user defined.

For more information on how to handle LPBSTR pointers returned by this API, please refer to [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).

## Requirements

**Header:** xtfremoterun.h

**Library:** xtfremoterun.lib

**Supported platforms:** Windows (for XBOX console tools)

## See also

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


## Related topics

- [Input (contents)](https://docs.xbox.com/build/core-features/common/input/gc-input-toc.md)
- [XInputOnGameInputInitialize](https://docs.xbox.com/reference/input/xinputongameinput/functions/xinputongameinputinitialize.md)
- [XInputOnGameInputUninitialize](https://docs.xbox.com/reference/input/xinputongameinput/functions/xinputongameinputuninitialize.md)
- [XInputOnGameInput (API contents)](https://docs.xbox.com/reference/input/xinputongameinput/xinputongameinput_members.md)
- [Porting from XInput to GameInput](https://docs.xbox.com/build/core-features/common/input/porting/input-porting-xinput.md)
