Package com.sun.jna.platform.win32.COM
Klasse WbemcliUtil
java.lang.Object
com.sun.jna.platform.win32.COM.WbemcliUtil
Utility class providing access to Windows Management Interface (WMI) via COM.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic classWbemcliUtil.WmiQuery<T extends Enum<T>>Helper class wrapping information required for a WMI query.classWbemcliUtil.WmiResult<T extends Enum<T>>Helper class wrapping an EnumMap containing the results of a query. -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final StringThe default namespace for most WMI queries.static final WbemcliUtilInstance to generate the WmiQuery class. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic Wbemcli.IWbemServicesconnectServer(String namespace) Obtains a locator to the WMI server and connects to the specified namespacestatic booleanhasNamespace(String namespace) Determine if WMI has the requested namespace.
-
Felddetails
-
INSTANCE
Instance to generate the WmiQuery class. -
DEFAULT_NAMESPACE
The default namespace for most WMI queries.- Siehe auch:
-
-
Konstruktordetails
-
WbemcliUtil
public WbemcliUtil()
-
-
Methodendetails
-
hasNamespace
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
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
-