Group: ODBC API - Library: odbc32
Adding an ODBC data source with the SQLConfigDataSource; use automatic or interactive mode
BOOL SQLConfigDataSource(
HWND hwndParent,
WORD fRequest,
LPCSTR lpszDriver,
LPCSTR lpszAttributes
);
DECLARE INTEGER SQLConfigDataSource IN odbccp32;
INTEGER hwndParent,;
INTEGER fRequest,;
STRING lpszDriver,;
STRING lpszAttributes
hwndParent [in] Parent window handle. The function will not display any dialog boxes if the handle is null.
fRequest [in] Type of request -- a predefined value.
lpszDriver [in] Driver description (usually the name of the associated DBMS) presented to users instead of the physical driver name.
lpszAttributes [in] List of attributes in the form of keyword-value pairs.
The function returns TRUE if it is successful.
When SQLConfigDataSource returns FALSE, an associated *pfErrorCode value can be obtained by calling SQLInstallerError.