1 package wsh; 3 4 import com4j.*; 5 6 9 public abstract class ClassFactory { 10 private ClassFactory() {} 12 13 public static IFileSystem3 createFileSystemObject() { 14 return COM4J.createInstance( IFileSystem3.class, "{0D43FE01-F093-11CF-8940-00A0C9054228}" ); 15 } 16 17 20 public static IWshShell3 createWshShell() { 21 return COM4J.createInstance( IWshShell3.class, "{72C24DD5-D70A-438B-8A42-98424B88AFB8}" ); 22 } 23 24 27 public static IWshShell3 createIWshShell_Class() { 28 return COM4J.createInstance( IWshShell3.class, "{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}" ); 29 } 30 31 34 public static IWshShortcut createWshShortcut() { 35 return COM4J.createInstance( IWshShortcut.class, "{A548B8E4-51D5-4661-8824-DAA1D893DFB2}" ); 36 } 37 38 41 public static IWshShortcut createIWshShortcut_Class() { 42 return COM4J.createInstance( IWshShortcut.class, "{F935DC24-1CF0-11D0-ADB9-00C04FD58A0B}" ); 43 } 44 45 48 public static IWshNetwork2 createWshNetwork() { 49 return COM4J.createInstance( IWshNetwork2.class, "{093FF999-1EA0-4079-9525-9614C3504B74}" ); 50 } 51 52 55 public static IWshNetwork2 createIWshNetwork_Class() { 56 return COM4J.createInstance( IWshNetwork2.class, "{F935DC26-1CF0-11D0-ADB9-00C04FD58A0B}" ); 57 } 58 59 62 public static IWshCollection createWshCollection() { 63 return COM4J.createInstance( IWshCollection.class, "{387DAFF4-DA03-44D2-B0D1-80C927C905AC}" ); 64 } 65 66 69 public static IWshCollection createIWshCollection_Class() { 70 return COM4J.createInstance( IWshCollection.class, "{F935DC28-1CF0-11D0-ADB9-00C04FD58A0B}" ); 71 } 72 73 76 public static IWshEnvironment createWshEnvironment() { 77 return COM4J.createInstance( IWshEnvironment.class, "{F48229AF-E28C-42B5-BB92-E114E62BDD54}" ); 78 } 79 80 83 public static IWshEnvironment createIWshEnvironment_Class() { 84 return COM4J.createInstance( IWshEnvironment.class, "{F935DC2A-1CF0-11D0-ADB9-00C04FD58A0B}" ); 85 } 86 87 90 public static IWshURLShortcut createWshURLShortcut() { 91 return COM4J.createInstance( IWshURLShortcut.class, "{50E13488-6F1E-4450-96B0-873755403955}" ); 92 } 93 94 97 public static IWshURLShortcut createIWshURLShortcut_Class() { 98 return COM4J.createInstance( IWshURLShortcut.class, "{F935DC2C-1CF0-11D0-ADB9-00C04FD58A0B}" ); 99 } 100 } 101 | Popular Tags |