1 package wmi; 3 4 import com4j.*; 5 6 9 public abstract class ClassFactory { 10 private ClassFactory() {} 12 13 16 public static ISWbemLocator createSWbemLocator() { 17 return COM4J.createInstance( ISWbemLocator.class, "{76A64158-CB41-11D1-8B02-00600806D9B6}" ); 18 } 19 20 23 public static ISWbemNamedValueSet createSWbemNamedValueSet() { 24 return COM4J.createInstance( ISWbemNamedValueSet.class, "{9AED384E-CE8B-11D1-8B05-00600806D9B6}" ); 25 } 26 27 30 public static ISWbemObjectPath createSWbemObjectPath() { 31 return COM4J.createInstance( ISWbemObjectPath.class, "{5791BC26-CE9C-11D1-97BF-0000F81E849C}" ); 32 } 33 34 37 public static ISWbemLastError createSWbemLastError() { 38 return COM4J.createInstance( ISWbemLastError.class, "{C2FEEEAC-CFCD-11D1-8B05-00600806D9B6}" ); 39 } 40 41 44 public static ISWbemSink createSWbemSink() { 45 return COM4J.createInstance( ISWbemSink.class, "{75718C9A-F029-11D1-A1AC-00C04FB6C223}" ); 46 } 47 48 51 public static ISWbemDateTime createSWbemDateTime() { 52 return COM4J.createInstance( ISWbemDateTime.class, "{47DFBE54-CF76-11D3-B38F-00105A1F473A}" ); 53 } 54 55 58 public static ISWbemRefresher createSWbemRefresher() { 59 return COM4J.createInstance( ISWbemRefresher.class, "{D269BF5C-D9C1-11D3-B38F-00105A1F473A}" ); 60 } 61 } 62 | Popular Tags |