Class Win32Process

java.lang.Object
oshi.driver.windows.wmi.Win32Process

@ThreadSafe public final class Win32Process extends Object
Utility to query WMI class Win32_Process
  • 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. Pass null 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.