Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

CIM_Thread class

The CIM_Thread class represents the ability to execute units of a process or task, in parallel. A process can have many threads, each of which is weak to the process.

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_Thread : CIM_LogicalElement
{
  string   Caption;
  string   CreationClassName;
  string   CSCreationClassName;
  string   CSName;
  string   Description;
  uint16   ExecutionState;
  string   Handle;
  datetime InstallDate;
  uint64   KernelModeTime;
  string   Name;
  string   OSCreationClassName;
  string   OSName;
  uint32   Priority;
  string   ProcessCreationClassName;
  string   ProcessHandle;
  string   Status;
  uint64   UserModeTime;
};

Members

The CIM_Thread class has these types of members:

Properties

The CIM_Thread 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

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

CSCreationClassName
Data type: string
Access type: Read-only

Scoping computer system's creation class name.

CSName
Data type: string
Access type: Read-only

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

Indicates the current operating condition of the thread.

ValueMeaning
0

Unknown

1

Other

2

Ready

3

Running

4

Blocked

5

Suspended blocked

6

Suspended ready

 

Handle
Data type: string
Access type: Read-only

Identifier for the thread.

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

Scoping operating system's creation class name.

OSName
Data type: string
Access type: Read-only

Scoping operating system's name.

Priority
Data type: uint32
Access type: Read-only

Urgency for execution of a thread. A thread can have a different priority than its owning process. If this information is not available for a thread, a value of 0 (zero) should be used.

ProcessCreationClassName
Data type: string
Access type: Read-only

Scoping process's creation class name.

ProcessHandle
Data type: string
Access type: Read-only

Scoping process's handle.

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

Remarks

The CIM_Thread class is derived from CIM_LogicalElement.

WMI does not implement this class. For WMI classes derived from CIM_Thread, 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.

Examples

For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

For C++ code examples, see WMI C++ Application Examples.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2

MOF

CIMWin32.mof

DLL

CIMWin32.dll

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.