Exemplo n.º 1
0
 public static AcmDriver FindByShortName(string shortName)
 {
     foreach (AcmDriver current in AcmDriver.EnumerateAcmDrivers())
     {
         if (current.ShortName == shortName)
         {
             return(current);
         }
     }
     return(null);
 }
Exemplo n.º 2
0
 public static bool IsCodecInstalled(string shortName)
 {
     using (IEnumerator <AcmDriver> enumerator = AcmDriver.EnumerateAcmDrivers().GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             if (enumerator.Current.ShortName == shortName)
             {
                 return(true);
             }
         }
     }
     return(false);
 }