C# で登録済みDSNを取得する
using (Microsoft.Win32.RegistryKey odbcDriversKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(@"SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources")) { if (odbcDriversKey != null) { foreach(string dns in odbcDriversKey.GetValueNames()) { // some process } } }