IXtfConsoleControlClient::GetRunningProcesses
Causes all running processes to be enumerated, invoking a callback for each running process.Syntax
Parameters
pCallbackType: IXtfRunningProcessCallback* A pointer to the IXtfRunningProcessCallback interface, invoked when a running process is discovered.
Return value
Type: HRESULT ReturnsS_OK if successful; otherwise, returns an HRESULT error code.
Remarks
This function causes the XBOX Tools Framework (XTF) API to enumerate all of the running processes on the current development console. When a running process is found, the XTF API invokes the OnFoundProcess callback function of the IXtfRunningProcessCallback interface implemented in your app and specified inpCallback. The XTF API passes a pointer to an XTFPROCESSINFO structure, describing the running process, when it invokes your implemented OnFoundProcess function.
Memory for the XTFPROCESSINFO structure is owned by the XBOX Tools Framework (XTF) API and is invalidated after each invocation of your IXtfRunningProcessCallback::OnFoundProcess callback function. You must copy the information in the structure if you need it for later use.
To get the list of processes running in the title partition you need to append
/title to the address given in XtfCreateConsoleClient when creating the IXtfConsoleControlClient instance, otherwise this function will return the list of processes running in the system partition.Requirements
Header: xtfconsolecontrol.h Library: xtfconsolecontrol.lib Supported platforms: Windows (for XBOX console tools)See also
IXtfConsoleControlClientXtfConsoleControl
