Klasse WbemcliUtil

java.lang.Object
com.sun.jna.platform.win32.COM.WbemcliUtil

public class WbemcliUtil extends Object
Utility class providing access to Windows Management Interface (WMI) via COM.
  • Felddetails Linksymbol

    • INSTANCE Linksymbol

      public static final WbemcliUtil INSTANCE
      Instance to generate the WmiQuery class.
    • DEFAULT_NAMESPACE Linksymbol

      public static final String DEFAULT_NAMESPACE
      The default namespace for most WMI queries.
      Siehe auch:
  • Konstruktordetails Linksymbol

    • WbemcliUtil Linksymbol

      public WbemcliUtil()
  • Methodendetails Linksymbol

    • hasNamespace Linksymbol

      public static boolean hasNamespace(String namespace)
      Determine if WMI has the requested namespace. Some namespaces only exist on newer versions of Windows.
      Parameter:
      namespace - The namespace to test
      Gibt zurück:
      true if the namespace exists, false otherwise
    • connectServer Linksymbol

      public static Wbemcli.IWbemServices connectServer(String namespace)
      Obtains a locator to the WMI server and connects to the specified namespace
      Parameter:
      namespace - The namespace to connect to
      Gibt zurück:
      A service representing the connected namespace, which can be queried. This service may be re-used for multiple queries and should be released by the user