大网数据广告活动
性能与资源

Process_V2_TypeGroup1 class

· 52CE 我爱测

Process_V2_TypeGroup1 class - This class is the event type class for process events. The following syntax is simplified from MOF code.

This class is the event type class for process events.

The following syntax is simplified from MOF code.

Syntax

[EventType{1, 2, 3, 4, 39}, EventTypeName{"Start", "End", "DCStart", "DCEnd", "Defunct"}]
class Process_V2_TypeGroup1 : Process_V2
{
  uint32 UniqueProcessKey;
  uint32 ProcessId;
  uint32 ParentId;
  uint32 SessionId;
  sint32 ExitStatus;
  object UserSID;
  string ImageFileName;
  string CommandLine;
};

Members

The Process_V2_TypeGroup1 class has these types of members:

Properties

The Process_V2_TypeGroup1 class has these properties.

CommandLine

Data type: string

Access type: Read-only

Qualifiers: WmiDataId(8), StringTermination("NullTerminated"), Format("w")

Full command line of the process.

ExitStatus

Data type: sint32

Access type: Read-only

Qualifiers: WmiDataId(5)

Exit status of the stopped process.

ImageFileName

Data type: string

Access type: Read-only

Qualifiers: WmiDataId(7), StringTermination("NullTerminated")

Path to the executable file of the process.

ParentId

Data type: uint32

Access type: Read-only

Qualifiers: WmiDataId(3), Format("x")

Unique identifier of the process that creates this process. Process identifier numbers are reused, so they only identify a process for the lifetime of that process. It is possible that the process identified by ParentProcessId is terminated, so ParentProcessId may not refer to a running process. It is also possible that ParentProcessId incorrectly refers to a process that reuses a process identifier.

ProcessId

Data type: uint32

Access type: Read-only

Qualifiers: WmiDataId(2), Format("x")

Global process identifier that you can use to identify a process. The value is valid from the time a process is created until it is terminated.

SessionId

Data type: uint32

Access type: Read-only

Qualifiers: WmiDataId(4)

Unique identifier that an operating system generates when it creates a new session. A session spans a period of time from log on until log off from a specific system.

UniqueProcessKey

Data type: uint32

Access type: Read-only

Qualifiers: WmiDataId(1), Pointer

The address of the process object in the kernel.

UserSID

Data type: object

Access type: Read-only

Qualifiers: WmiDataId(6), Extension("Sid")

Security identifier (SID) for the user context under which the event happens.

Remarks

The DCStart and DCEnd event types enumerate the process that are currently running, including idle and system process, at the time the kernel session starts and ends, respectively.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]

See also

Process_V2

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 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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