Skip to main content

IXtfRemoteRunClient::Run Method

Run a given command on the console.

Syntax

Parameters

pszCommandLine
Type: LPCWSTR
The command line to execute on the remote console. pszWorkingDirectory
Type: LPCWSTR
The working directory on the remote console. dwFlags
Type: DWORD
One or more of the flags described in Remarks. dwPeriod
Type: DWORD
When output is redirected, it is batched and sent back to the client periodically. This value specifies the number of milliseconds between batching operations. pCallback
Type: IXtfRemoteRunCallback *
A callback used when standard input or output are redirected.

Return value

Type: HRESULT HRESULT success or error code.

Remarks

The dwFlags parameter is a bitwise-AND of any of the following values: The IXtfRemoteRunCallback contains both an input and an output callback function. You can populate either or both of these member whether you need input or output for a function or you need input and output for a function. For more information about callback input, see IXtfRemoteRunCallback::Input. For more information about callback output, see IXtfRemoteRunCallback::Output.

Requirements

Header: xtfremoterun.h Library: xtfremoterun.lib Supported platforms: Windows (for XBOX console tools)

See also

XtfRemoteRun
IXtfRemoteRunClient
IXtfRemoteRunCallback
Last modified on August 20, 2026