You can add a custom dialog in the ODBC Data Source Administrator. This dialog is displayed when users click Add, Remove, or Configure. By using your custom dialog, customers can perform custom configuration of the ODBC connection without having to modify the Windows registry or by editing the
.ini files on Unix or Linux platforms.
To create a custom DSN configuration dialog, implement the driver setup DLL API by implementing and exporting the
BOOL INSTAPI ConfigDSN(
You can implement this in the driver shared library, or as a separate shared library.
ConfigDSNand exporting it from within the driver DLL.
To get your setup function recognized by the ODBC Data Source Administrator, you must add the Setup key to your driver’s entry in ODBCINST.INI in the registry. For an example of adding the Setup key, see C++ Packaging for Windows in the SimbaEngine SDK Deployment Guide.