SQLGetInstalledDrivers Function
When SQLGetInstalledDrivers returns FALSE, an associated *pfErrorCode value can be obtained by calling SQLInstallerError. The following table lists the *pfErrorCode values that can be returned by SQLInstallerError and explains each one in the context of this function.
|
*pfErrorCode |
Error |
Description |
|---|---|---|
|
ODBC_ERROR_GENERAL_ERR |
General installer error |
An error occurred for which there was no specific installer error. |
|
ODBC_ERROR_INVALID_BUFF_LEN |
Invalid buffer length |
The lpszBuf argument was NULL or invalid, or the cbBufMax argument was less than or equal to 0. |
|
ODBC_ERROR_COMPONENT_NOT_FOUND |
Component not found in registry |
The installer could not find the [ODBC Drivers] section in the registry. |
|
ODBC_ERROR_OUT_OF_MEM |
Out of memory |
The installer could not perform the function because of a lack of memory. |
Each driver description is terminated with a null byte, and the entire list is terminated with a null byte. (That is, two null bytes mark the end of the list.) If the allocated buffer is not large enough to hold the entire list, the list is truncated without error. An error is returned if a null pointer is passed in as lpszBuf.