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

# Output

> IXtfRemoteRunCallback::Output Method

Called to receive text sent by running remote executable to its standard output.

## Syntax

```cpp theme={null}
public:
HRESULT Output(
         LPCWSTR pszText
)  
```

### Parameters

*pszText*\
Type: LPCWSTR

The output text from the remote executable.

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

The `Output` function allows you to collect output from 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::Output` is user-defined.

## 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::Input](https://docs.xbox.com/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/methods/ixtfremoteruncallback_input.md)\
[IXtfRemoteRunClient::Run](https://docs.xbox.com/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunClient/methods/ixtfremoterunclient_run.md)


## Related topics

- [monitoring_output_saved](https://docs.xbox.com/services/playfab/api-references/events/MultiplayerServers/monitoring-output-saved.md)
- [OnOutputDebugString](https://docs.xbox.com/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorCallback/methods/onoutputdebugstring-ixtfdebugmonitorcallback-xtfdebugmonitor-xbox-microsoft-m.md)
- [PartyAudioOutputState](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/enums/partyaudiooutputstate.md)
- [GetAutoBreadcrumbsOutput](https://docs.xbox.com/reference/graphics/d3d12/interfaces/id3d12deviceremovedextendeddata/methods/id3d12deviceremovedextendeddata_getautobreadcrumbsoutput_public.md)
- [XtfCaptureOutputEnd](https://docs.xbox.com/reference/tools/xtf/xtfapi/functions/xtfcaptureoutputend-xtfapi-xbox-windows-m.md)
