driver-updater

Windows app that checks Windows Update and hardware vendors for newer drivers and silently installs the driver.
git clone https://dittus.dev/git/driver-updater.git
Log | Files | Refs | README | Download

Com.cs (259B)


      1 namespace DriverUpdater;
      2 
      3 static class Com
      4 {
      5     // Creates a COM object by its ProgID, to be called through dynamic.
      6     public static dynamic Create(string progId) =>
      7         Activator.CreateInstance(Type.GetTypeFromProgID(progId, throwOnError: true)!)!;
      8 }