Contents|Index|Previous|Next

Driver Setup DLLs

The driver setup DLL contains the ConfigDriver and ConfigDSN functions. ConfigDSN maintains driver-specific information about data sources in the registry. ConfigDriver performs driver-specific installation tasks, such as entering driver-specific information into the registry. For a complete description of these functions, see Chapter 22, Setup DLL API Reference.

ConfigDSN calls the following functions in the installer DLL to maintain data source information in the registry:

odbc00090000.gif SQLWriteDSNToIni. Add a data source.

odbc00090000.gif SQLRemoveDSNFromIni. Delete a data source.

odbc00090000.gif SQLWritePrivateProfileString. Write a driver-specific value under a data source specification subkey.

odbc00090000.gif SQLGetPrivateProfileString. Read a driver-specific value from a data source specification subkey.

odbc00090000.gif SQLGetTranslator. Prompt the user for a translator name and option. This function calls ConfigTranslator in the translator setup DLL.

The driver setup DLL is written by the driver developer. It can be part of the driver DLL or a separate DLL.