大网数据广告活动
Windows 系统接口

Obtaining Additional Process Information

· 52CE 我爱测

There are a variety of functions for obtaining information about processes.

There are a variety of functions for obtaining information about processes. Some of these functions can be used only for the calling process, because they do not take a process handle as a parameter. You can use functions that take a process handle to obtain information about other processes.

  • To obtain the command-line string for the current process, use the GetCommandLine function.
  • To retrieve the STARTUPINFO structure specified when the current process was created, use the GetStartupInfo function.
  • To obtain the version information from the executable header, use the GetProcessVersion function.
  • To obtain the full path and file name for the executable file containing the process code, use the GetModuleFileName function.
  • To obtain the count of handles to graphical user interface (GUI) objects in use, use the GetGuiResources function.
  • To determine whether a process is being debugged, use the IsDebuggerPresent function.
  • To retrieve accounting information for all I/O operations performed by the process, use the GetProcessIoCounters function.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 07/14/2025
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。