Class Win32LogicalDisk

java.lang.Object
oshi.driver.common.windows.wmi.Win32LogicalDisk

@ThreadSafe public class Win32LogicalDisk extends Object
Constants and property enum for WMI class Win32_LogicalDisk.
  • Field Details

  • Constructor Details

    • Win32LogicalDisk

      protected Win32LogicalDisk()
      Constructor.
  • Method Details

    • buildWmiClassNameWithWhere

      public static String buildWmiClassNameWithWhere(String nameToMatch, boolean localOnly)
      Builds the WMI class name with optional WHERE clause for logical disk queries.
      Parameters:
      nameToMatch - an optional string to filter match, null otherwise
      localOnly - whether to only search local drives
      Returns:
      the WMI class name with WHERE clause appended
    • queryLogicalDisk

      public static WmiResult<Win32LogicalDisk.LogicalDiskProperty> queryLogicalDisk(WmiQueryExecutor h, String nameToMatch, boolean localOnly)
      Queries logical disk information.
      Parameters:
      h - An instantiated WmiQueryExecutor.
      nameToMatch - an optional string to filter match, null otherwise
      localOnly - Whether to only search local drives
      Returns:
      Logical Disk Information