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

# XTFPROCESSINFO

> XTFPROCESSINFO

# XTFPROCESSINFO

包含有关正在运行的 XBOX Tools Framework (XTF) 进程的信息。

<a id="syntaxSection" />

## 语法

```cpp theme={null}
typedef struct XTFPROCESSINFO {
    DWORD dwProcessId;
    LPCWSTR pszImageFileName;
} XTFPROCESSINFO, *LPXTFPROCESSINFO;  
```

<a id="membersSection" />

### 成员

*dwProcessId*\
类型：DWORD

进程的标识符。

*pszImageFileName*\
类型：LPCWSTR

指向进程映像文件名的指针。

<a id="remarksSection" />

## 备注

此结构表示开发主机上正在运行的进程的进程 ID 和进程映像的文件名。[IXtfConsoleControlClient::GetRunningProcesses](/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_getrunningprocesses) 函数在为开发主机上的每个正在运行的进程调用已实现的 [IXtfRunningProcessCallback::OnFoundProcess](/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfRunningProcessCallback/methods/ixtfrunningprocesscallback_onfoundprocess) 回调函数时，会提供指向 `XTFPROCESSINFO` 结构的指针。有关使用 XBOX Tools Framework (XTF) 列出正在运行的进程的详细信息，请参阅 [进程列表 (xbtlist.exe) (NDA 主题)](/tools/tools-console/commandlinetools/xbtlist)。

<a id="requirements" />

## 要求

**头文件：** xtfconsolecontrol.h

**库：** xtfconsolecontrol.lib

**支持的平台：** Windows（适用于 XBOX 主机工具）

<a id="seealsoSection" />

## 另请参阅

[XtfConsoleControl](/reference/tools/xtf/xtfconsolecontrol/xtfconsolecontrol_members)\
[XBOX Tools Framework 原生 API 参考](/reference/tools/xtf/atoc-xtf-native)


## Related topics

- [IXtfRunningProcessCallback::OnFoundProcess](/zh-CN/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfRunningProcessCallback/methods/ixtfrunningprocesscallback_onfoundprocess.md)
- [IXtfConsoleControlClient::GetRunningProcesses](/zh-CN/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_getrunningprocesses.md)
