MSFT_WmiThreadPoolEvent class

The MSFT_WmiThreadPoolEvent abstract troubleshooting class provides notification of thread events in the WMI Event SubSystem (ESS).

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

Syntax

class MSFT_WmiThreadPoolEvent : MSFT_WmiEssEvent
{
  uint8  SECURITY_DESCRIPTOR[];
  uint32 ThreadID;
  uint64 TIME_CREATED;
};

Members

The MSFT_WmiThreadPoolEvent class has these types of members:

Properties

The MSFT_WmiThreadPoolEvent class has these properties.

SECURITY_DESCRIPTOR

Data type: uint8 array

Access type: Read-only

Descriptor that the event provider uses to determine which users can receive the event. For more information, see WMI Security Constants.

This property is inherited from __Event

ThreadID

Data type: uint32

Access type: Read-only

Identifier of the thread involved in the event.

TIME_CREATED

Data type: uint64

Access type: Read-only

Unique value that indicates the time the event is generated. This is a 64-bit value that represents the number of 100-nanosecond intervals after January 1, 1601. The information is in the Coordinated Universal Time (UTC) format.

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

This property is inherited from __Event

Examples

The following VBScript code example reports thread creation and deletion events in the WMI event system. These events generate the classes derived from MSFT_WmiThreadPoolEvent: MSFT_WmiThreadPoolCreated and MSFT_WmiThreadPoolDeleted.

strComputer = "." 
Set objWMIService = GetObject("winmgmts:\\" _
    & strComputer & "\root\CIMV2") 
Set objEvents = objWMIService.ExecNotificationQuery _
("SELECT * FROM MSFT_WmiThreadPoolEvent WITHIN 5")

Do While True
    Set objReceivedEvent = objEvents.NextEvent
    Wscript.Echo "An event has occurred: Event class is " _
        & objReceivedEvent.Path_.Class & VBNewLine _
        & "ThreadID = " & objReceivedEvent.ThreadID
Loop

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
Root\CIMV2
MOF
System.mof
DLL
WmiPrvSD.dll

See also

MSFT_WmiEssEvent

WMI Service Event Troubleshooting Classes

WMI Troubleshooting

WMI Troubleshooting

Monitoring Events

Receiving a WMI Event