Package com.drighetto.wmicom4j.wmijtd

Examples of com.drighetto.wmicom4j.wmijtd.ISWbemObjectSet


      System.out.println("Connected !");

      /* Perform a query : What logical disks do we have ? */
      System.out.println("=> Perform a query : What logical disks do we have ?");
      // Select informations
      ISWbemObjectSet result = wbemServices.execQuery("Select * from Win32_LogicalDisk", "WQL", 16, null);
      // Display query results
      for (Com4jObject obj : result) {
        ISWbemObject wo = obj.queryInterface(ISWbemObject.class);
        System.out.println(wo.getObjectText_(0));
      }
View Full Code Here


      /* Step 1 : Connect to current machine*/
      ISWbemServices wbemServices = wbemLocator.connectServer("localhost", "Root\\CIMv2", "", "", "", "", 0, null);
      System.out.println("Connected !");
      /*Perform a query*/
      // Select informations
      ISWbemObjectSet result = wbemServices.execQuery("Select * from Win32_USBDevice", "WQL", 16, null);
      // Display query results
      for (Com4jObject obj : result) {
        ISWbemObject wo = obj.queryInterface(ISWbemObject.class);
        wo.getObjectText_(0);
      }
View Full Code Here

TOP

Related Classes of com.drighetto.wmicom4j.wmijtd.ISWbemObjectSet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.