Exemplo n.º 1
0
        /// <summary>
        /// Instantiate a ASIODriver given its name.
        /// </summary>
        /// <param name="name">The name of the driver</param>
        /// <returns>an ASIODriver instance</returns>
        // Token: 0x060006D5 RID: 1749 RVA: 0x00015250 File Offset: 0x00013450
        public static ASIODriver GetASIODriverByName(string name)
        {
            RegistryKey registryKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\ASIO\\" + name);

            if (registryKey == null)
            {
                throw new ArgumentException(string.Format("Driver Name {0} doesn't exist", name));
            }
            string g = registryKey.GetValue("CLSID").ToString();

            return(ASIODriver.GetASIODriverByGuid(new Guid(g)));
        }