cursor_type - property in ROOT\WMI namespace

cursor_type in other namespaces

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

propertyClassOrigin
cursor_typecursor_executecursor_execute
cursor_typecursor_manager_cached_cursor_addedcursor_manager_cached_cursor_added
cursor_typecursor_manager_cached_cursor_removedcursor_manager_cached_cursor_removed
cursor_typecursor_manager_cursor_begincursor_manager_cursor_begin
cursor_typecursor_manager_cursor_cache_attemptcursor_manager_cursor_cache_attempt
cursor_typecursor_manager_cursor_cache_hitcursor_manager_cursor_cache_hit
cursor_typecursor_manager_cursor_endcursor_manager_cursor_end
cursor_typecursor_manager_cursor_memory_usagecursor_manager_cursor_memory_usage
cursor_typecursor_manager_cursor_plan_begincursor_manager_cursor_plan_begin
cursor_typecursor_manager_cursor_plan_endcursor_manager_cursor_plan_end
cursor_typecursor_manager_cursor_worktable_use_begincursor_manager_cursor_worktable_use_begin
cursor_typecursor_manager_cursor_worktable_use_endcursor_manager_cursor_worktable_use_end
cursor_typecursor_opencursor_open

Code samples for cursor_type property

Get instance of WMI class using GetObject, cursor_type property of cursor_open

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

WMI query - sample windows WQL with C#, cursor_type property of cursor_open

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

WMI query - sample windows WQL with VB.Net, cursor_type property of cursor_open

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