* MSDN documentation suggests that the value is hidden somewhere in the registry but I haven't found it yet.
* Although both the registry and the ODBC.ini files appear to be maintained together they are not maintained automatically through the registry's IniFileMapping.
*/
staticUWORDconfig_mode=ODBC_BOTH_DSN;
/* MSDN documentation suggests that the error subsystem handles errors 1 to 8
* only and experimentation (Windows 2000) shows that the errors are process-
* wide so go for the simple solution; static arrays.
ok(!bool_ret&&sql_ret==SQL_SUCCESS_WITH_INFO&&error_code==ODBC_ERROR_INVALID_PARAM_SEQUENCE,"SQLSetConfigMode with invalid argument did not fail correctly");
ok(ODBC_SYSTEM_DSN==2&&ODBC_USER_DSN==1&&ODBC_BOTH_DSN==0,"SQLSetConfigMode modes not as expected\n");
for(i=ODBC_SYSTEM_DSN;i>=ODBC_BOTH_DSN;--i)
{
ok(SQLSetConfigMode((UWORD)i),"SQLSetConfigMode Failed to set config mode\n");
bool_ret=SQLGetConfigMode(&config_mode);
ok(bool_ret&&config_mode==i,"Failed to confirm SQLSetConfigMode.\n");