Class Win32LogicalDiskJNA

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

@ThreadSafe public final class Win32LogicalDiskJNA extends oshi.driver.common.windows.wmi.Win32LogicalDisk
Utility to query WMI class Win32_LogicalDisk using JNA.
  • Nested Class Summary

    Nested classes/interfaces inherited from class oshi.driver.common.windows.wmi.Win32LogicalDisk

    oshi.driver.common.windows.wmi.Win32LogicalDisk.LogicalDiskProperty
  • Field Summary

    Fields inherited from class oshi.driver.common.windows.wmi.Win32LogicalDisk

    WIN32_LOGICAL_DISK
  • Method Summary

    Modifier and Type
    Method
    Description
    static WbemcliUtil.WmiResult<oshi.driver.common.windows.wmi.Win32LogicalDisk.LogicalDiskProperty>
    queryLogicalDisk(String nameToMatch, boolean localOnly)
    Queries logical disk information

    Methods inherited from class oshi.driver.common.windows.wmi.Win32LogicalDisk

    buildWmiClassNameWithWhere

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • queryLogicalDisk

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