offset - property in ROOT\WMI namespace

offset in other namespaces

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

propertyClassOrigin
offsetasync_io_completedasync_io_completed
offsetasync_io_requestedasync_io_requested
offsetdisk_write_asyncdisk_write_async
offsetfile_readfile_read
offsetfile_read_completedfile_read_completed
offsetfile_read_enqueuedfile_read_enqueued
offsetfile_read_throttledfile_read_throttled
offsetfile_write_completedfile_write_completed
offsetfile_write_enqueuedfile_write_enqueued
offsetfile_write_throttledfile_write_throttled
offsetfile_writtenfile_written
offsetfile_written_to_replicafile_written_to_replica
offsetFileIo_ReadWriteFileIo_ReadWrite
offsetFileIo_V2_ReadWriteFileIo_V2_ReadWrite
offsetlog_io_completelog_io_complete
offsetlogreader_process_text_infologreader_process_text_info
offsetmodule_endmodule_end
offsetmodule_startmodule_start
offsetquery_rpc_lob_actionquery_rpc_lob_action
offsetquery_rpc_server_lob_actionquery_rpc_server_lob_action
offsetquery_store_failed_to_capture_queryquery_store_failed_to_capture_query
offsetquery_store_failed_to_load_forced_planquery_store_failed_to_load_forced_plan
offsetsp_statement_completedsp_statement_completed
offsetsp_statement_startingsp_statement_starting
offsetsql_statement_completedsql_statement_completed
offsetsql_statement_recompilesql_statement_recompile
offsetsql_statement_startingsql_statement_starting
offsetW3GeneralResponseEntityFileW3GeneralResponseEntityFile

Code samples for offset property

Get instance of WMI class using GetObject, offset property of module_end

Short VBS code - get a single specified instance of module_end 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:" + _
 "module_end.PropertyName=""SomeText""")
Wscript.Echo wmiObject.offset 'or other property name, see properties
See more VBS samples of module_end class

WMI query - sample windows WQL with C#, offset property of module_end

Get a specified instance of module_end 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 module_end 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("offset : {0}", m["offset"]);
  
}

WMI query - sample windows WQL with VB.Net, offset property of module_end

Get a specified instance of module_end 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 module_end 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("offset : {0}", mObject("offset"))
Next
comments powered by Disqus
WUtils.com