public static AcmDriver FindByShortName(string shortName) { foreach (AcmDriver current in AcmDriver.EnumerateAcmDrivers()) { if (current.ShortName == shortName) { return(current); } } return(null); }
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); }