AlanHearnshaw
Programmer
I am trying to determine the database type of a database from the ODBC DSN that is set up on the client computer.<br>
I cannot seem to get enough reliable information from the connect string once the database is opened and am trying to query the value:<br>
"HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources".<br>
I can open the key using the "RegOpenKey" API but cannot either enumerate the key values or retrieve any of the key values. I have tried both "RegEnumValueEx" and "RegQueryValueEx" but both return an error. Am I right in thinking that if the API call asks for a data type "Byte" then I set up a Byte array and send the first element of the array to the API call? This is necessary with "RegQueryValueEx".<br>
Thanks in advance to any API experts out there.
I cannot seem to get enough reliable information from the connect string once the database is opened and am trying to query the value:<br>
"HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources".<br>
I can open the key using the "RegOpenKey" API but cannot either enumerate the key values or retrieve any of the key values. I have tried both "RegEnumValueEx" and "RegQueryValueEx" but both return an error. Am I right in thinking that if the API call asks for a data type "Byte" then I set up a Byte array and send the first element of the array to the API call? This is necessary with "RegQueryValueEx".<br>
Thanks in advance to any API experts out there.