Class Win32LogicalDisk


  • @ThreadSafe
    public final class Win32LogicalDisk
    extends java.lang.Object
    Utility to query WMI class Win32_LogicalDisk
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String WIN32_LOGICAL_DISK  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Win32LogicalDisk()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<Win32LogicalDisk.LogicalDiskProperty> queryLogicalDisk​(java.lang.String nameToMatch, boolean localOnly)
      Queries logical disk information
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • WIN32_LOGICAL_DISK

        private static final java.lang.String WIN32_LOGICAL_DISK
        See Also:
        Constant Field Values
    • Constructor Detail

      • Win32LogicalDisk

        private Win32LogicalDisk()
    • Method Detail

      • queryLogicalDisk

        public static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<Win32LogicalDisk.LogicalDiskProperty> queryLogicalDisk​(java.lang.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