Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.18 KB

SQLGetInstalledDrivers.md

File metadata and controls

60 lines (41 loc) · 1.18 KB

Home

Function name : SQLGetInstalledDrivers

Group: ODBC API - Library: odbc32


SQLGetInstalledDrivers reads the [ODBC Drivers] section of the system information and returns a list of descriptions of the installed drivers.


Code examples:

List of ODBC drivers installed (read from the [ODBC Drivers] section)

Declaration:

BOOL SQLGetInstalledDrivers(
	LPSTR lpszBuf,
	WORD  cbBufMax,
	WORD * pcbBufOut);  

FoxPro declaration:

DECLARE INTEGER SQLGetInstalledDrivers IN odbccp32;
	STRING  @ lpszBuf,;
	INTEGER   cbBufMax,;
	INTEGER @ pcbBufOut
  

Parameters:

lpszBuf [Output] List of descriptions of the installed drivers.

cbBufMax [Input] Length of lpszBuf.

pcbBufOut [Output] Total number of bytes (excluding the null-termination byte) returned in lpszBuf.


Return value:

The function returns TRUE if it is successful.


Comments:

[My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers]