thread_id - property in ROOT\WMI namespace

thread_id in other namespaces

List of classes with thread_id local property in ROOT\WMI namespace

propertyClassOrigin
thread_idcheck_message_replycheck_message_reply
thread_idcheck_message_requestcheck_message_request
thread_idcollect_all_CSQLSourceExecutecollect_all_CSQLSourceExecute
thread_idcollect_all_ExecUdfLobAccesscollect_all_ExecUdfLobAccess
thread_idcollect_all_ExecUdxDataAccesscollect_all_ExecUdxDataAccess
thread_idcollect_all_GetRowcollect_all_GetRow
thread_idcollect_all_HkProcFExecutecollect_all_HkProcFExecute
thread_idcollect_all_Initcollect_all_Init
thread_idcollect_all_UDFInvokeExternalcollect_all_UDFInvokeExternal
thread_idhadr_worker_pool_taskhadr_worker_pool_task
thread_idhadr_worker_pool_threadhadr_worker_pool_thread
thread_idinaccurate_cardinality_estimateinaccurate_cardinality_estimate
thread_idquery_driver_received_activationquery_driver_received_activation
thread_idquery_driver_received_rows_affectedquery_driver_received_rows_affected
thread_idquery_driver_received_statistics_profilequery_driver_received_statistics_profile
thread_idquery_driver_sending_activationquery_driver_sending_activation
thread_idquery_driver_sent_activationquery_driver_sent_activation
thread_idquery_driver_sent_rows_affectedquery_driver_sent_rows_affected
thread_idquery_driver_sent_statistics_profilequery_driver_sent_statistics_profile
thread_idreplica_create_replyreplica_create_reply
thread_idreplica_create_requestreplica_create_request
thread_idreplica_create_startreplica_create_start
thread_idreplica_destroy_startreplica_destroy_start

Code samples for thread_id property

Get instance of WMI class using GetObject, thread_id property of query_driver_received_activation

Short VBS code - get a single specified instance of query_driver_received_activation class or get a default unnamed instance (singleton) of the class, using one single command GetObject with exact path of the wmi object.

'https://wutils.com/wmi/
Dim wmiObject
Set wmiObject = GetObject( _
 "WINMGMTS:\\.\ROOT\WMI:" + _
 "query_driver_received_activation.PropertyName=""SomeText""")
Wscript.Echo wmiObject.thread_id 'or other property name, see properties
See more VBS samples of query_driver_received_activation class

WMI query - sample windows WQL with C#, thread_id property of query_driver_received_activation

Get a specified instance of query_driver_received_activation by a key, get a default unnamed instance (singleton) of the class or list instances of the class by wmi query using this c# sample code.
See in another language: VBScript, VB.Net.
//https://wutils.com/wmi/

//Project -> Add reference -> System.Management
//using System.Management;

//create a management scope object
ManagementScope scope = new ManagementScope("\\\\.\\ROOT\\WMI");

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM query_driver_received_activation Where PropertyName=\"SomeText\"");

//create object searcher
ManagementObjectSearcher searcher =
                        new ManagementObjectSearcher(scope, query);

//get a collection of WMI objects
ManagementObjectCollection queryCollection = searcher.Get();

//enumerate the collection.
foreach (ManagementObject m in queryCollection) 
{
  // access properties of the WMI object
  Console.WriteLine("thread_id : {0}", m["thread_id"]);
  
}

WMI query - sample windows WQL with VB.Net, thread_id property of query_driver_received_activation

Get a specified instance of query_driver_received_activation by a key, get a default unnamed instance (singleton) of the class or list instances of the class by wmi query using this VB.Net sample code.
See in another language: VBScript, C#
'Project -> Add reference -> System.Management
'Imports System.Management

'Get the namespace management scope
Dim Scope As New ManagementScope("\\.\ROOT\WMI")

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM query_driver_received_activation Where PropertyName="SomeText"")

'Create object searcher
Dim Searcher As New ManagementObjectSearcher(Scope, Query)

'Get a collection of WMI objects
Dim queryCollection As ManagementObjectCollection = Searcher.Get

'Enumerate wmi object 
For Each mObject As ManagementObject In queryCollection
  'write out some property value
  Console.WriteLine("thread_id : {0}", mObject("thread_id"))
Next
comments powered by Disqus
WUtils.com