Package oshi.driver.windows.wmi
Class Win32Process
java.lang.Object
oshi.driver.windows.wmi.Win32Process
Utility to query WMI class
Win32_Process
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Process command lines.static enum
Process properties accessible from WTSEnumerateProcesses in Vista+ -
Method Summary
Modifier and TypeMethodDescriptionstatic com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<Win32Process.CommandLineProperty>
queryCommandLines
(Set<Integer> pidsToQuery) Returns process command linesstatic com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<Win32Process.ProcessXPProperty>
queryProcesses
(Collection<Integer> pids) Returns process info
-
Method Details
-
queryCommandLines
public static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<Win32Process.CommandLineProperty> queryCommandLines(Set<Integer> pidsToQuery) Returns process command lines- Parameters:
pidsToQuery
- Process IDs to query for command lines. Passnull
to query all processes.- Returns:
- A
WbemcliUtil.WmiResult
containing process IDs and command lines used to start the provided processes.
-
queryProcesses
public static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<Win32Process.ProcessXPProperty> queryProcesses(Collection<Integer> pids) Returns process info- Parameters:
pids
- Process IDs to query.- Returns:
- Information on the provided processes.
-