EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

CIM_Process class

The CIM_Process class represents a single instance of a running program. A user typically sees a process as an application or task. A process is defined by a workspace of memory resources and environmental settings that are allocated to it. On a multitasking system, the workspace prevents intrusion of resources by other processes. Additionally, a process can execute as multiple threads, all which run within the same workspace.

Important  The DMTF (Distributed Management Task Force) CIM (Common Information Model) classes are the parent classes upon which WMI classes are built. WMI currently supports only the CIM 2.x version schemas.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of its inherited properties. Properties are listed in alphabetic order, not MOF order.

Syntax

class CIM_Process : CIM_LogicalElement
{
  string   Caption;
  string   CreationClassName;
  datetime CreationDate;
  string   CSCreationClassName;
  string   CSName;
  string   Description;
  uint16   ExecutionState;
  string   Handle;
  datetime InstallDate;
  uint64   KernelModeTime;
  string   Name;
  string   OSCreationClassName;
  string   OSName;
  uint32   Priority;
  string   Status;
  datetime TerminationDate;
  uint64   UserModeTime;
  uint64   WorkingSetSize;
};

Members

The CIM_Process class has these types of members:

Properties

The CIM_Process class has these properties.

Caption
Data type: string
Access type: Read-only

Short textual description of the object. This property is inherited from CIM_ManagedSystemElement.

CreationClassName
Data type: string
Access type: Read-only
Qualifiers: MaxLen (256)

Name of the class or subclass used in the creation of an instance. When used with other key properties of the class, this property allows all instances of the class and its subclasses to be uniquely identified.

CreationDate
Data type: datetime
Access type: Read-only

Time that the process began executing.

CSCreationClassName
Data type: string
Access type: Read-only
Qualifiers: MaxLen (256)

Scoping computer system's creation class name.

CSName
Data type: string
Access type: Read-only
Qualifiers: MaxLen (256)

Scoping computer system's name.

Description
Data type: string
Access type: Read-only

Textual description of the object. This property is inherited from CIM_ManagedSystemElement.

ExecutionState
Data type: uint16
Access type: Read-only

Current operating condition of the process.

ValueMeaning
0

Unknown

1

Other

2

Ready

3

Running

4

Blocked

5

Suspended—blocked

6

Suspended—ready

7

Terminated

8

Stopped

9

Growing

 

Handle
Data type: string
Access type: Read-only
Qualifiers: MaxLen (256)

Identifies the process. A process identifier is a kind of process handle.

InstallDate
Data type: datetime
Access type: Read-only

Date and time the object was installed. This property does not need a value to indicate that the object is installed. This property is inherited from CIM_ManagedSystemElement.

KernelModeTime
Data type: uint64
Access type: Read-only

Time in kernel mode, in 100 nanosecond units. If this information is not available, a value of 0 (zero) should be used.

For more information about using uint64 values in scripts, see Scripting in WMI.

Name
Data type: string
Access type: Read-only

Label by which the object is known. When subclassed, this property can be overridden to be a key property. This property is inherited from CIM_ManagedSystemElement.

OSCreationClassName
Data type: string
Access type: Read-only
Qualifiers: MaxLen (256)

Scoping operating system's creation class name.

OSName
Data type: string
Access type: Read-only
Qualifiers: MaxLen (256)

Scoping operating system's name.

Priority
Data type: uint32
Access type: Read-only

Urgency or importance for process execution. If a priority is not defined for a process, a value of 0 (zero) should be used.

Status
Data type: string
Access type: Read-only

Current status of the object. This property is inherited from CIM_ManagedSystemElement.

Values include the following:

"OK"
"Error"
"Degraded"
"Unknown"
"Pred Fail"
"Starting"
"Stopping"
"Service"
"Stressed"
"NonRecover"
"No Contact"
"Lost Comm"
TerminationDate
Data type: datetime
Access type: Read-only

Time that the process was stopped or terminated.

UserModeTime
Data type: uint64
Access type: Read-only

Time in user mode, in 100 nanosecond units. If this information is not available, a value of 0 (zero) should be used.

For more information about using uint64 values in scripts, see Scripting in WMI.

WorkingSetSize
Data type: uint64
Access type: Read-only

Amount of memory, in bytes, that a process needs to execute efficiently for an operating system that uses page-based memory management. If the system does not have enough memory (less than the working set size), thrashing occurs. If the size of the working set is not known, use NULL or 0 (zero). If working set data is provided, you can monitor the information to understand the changing memory requirements of a process.

For more information about using uint64 values in scripts, see Scripting in WMI.

Remarks

The CIM_Process class is derived from CIM_LogicalElement.

WMI does not implement this class. For WMI classes derived from CIM_Process, see Win32 Classes.

This documentation is derived from the CIM class descriptions published by the DMTF. Microsoft may have made changes to correct minor errors, conform to Microsoft SDK documentation standards, or provide more information.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2

MOF

CIMWin32.mof

DLL

CIMWin32.dll

 

 

Afficher:
© 2014 Microsoft