DSN:
SQLGetConfigMode
SQLGetPrivateProfileString
SQLSetConfigMode
Enumerating ODBC Data Sources available on the local computer
How to display a dialog box with which the user can add a data source (DSN)
How to retrieve list of system DSNs (Data Source Name) with parameters
Saving local machine ODBC Registry Entries to XML file