Using Win32 functions in Visual FoxPro Image Gallery
ODBC API
..msdn
SQLAllocEnv
SQLAllocHandle
SQLBindCol
SQLBrowseConnect
SQLConfigDataSource
SQLConnect
SQLCreateDataSource
SQLDataSources
SQLDisconnect
SQLDriverConnect
SQLDrivers
SQLExecDirect
SQLFetch
SQLFreeEnv
SQLFreeHandle
SQLGetConfigMode
SQLGetConnectAttr
SQLGetDiagRec
SQLGetEnvAttr
SQLGetFunctions
SQLGetInfo
SQLGetInstalledDrivers
SQLGetPrivateProfileString
SQLInstallerError
SQLManageDataSources
SQLNativeSql
SQLRowCount
SQLSetConfigMode
SQLSetEnvAttr
SQLTables
Code examples:
Enumerating ODBC drivers available on the local computer
SQLDrivers
..msdn    Add comment     W32 Constants      Translate this page
SQLDrivers lists driver descriptions and driver attribute keywords.
Code examples:
Enumerating ODBC drivers available on the local computer
Declaration:
SQLRETURN SQLDrivers(
    SQLHENV     EnvironmentHandle,
    SQLUSMALLINT     Direction,
    SQLCHAR *     DriverDescription,
    SQLSMALLINT     BufferLength1,
    SQLSMALLINT *     DescriptionLengthPtr,
    SQLCHAR *     DriverAttributes,
    SQLSMALLINT     BufferLength2,
    SQLSMALLINT *     AttributesLengthPtr);
FoxPro declaration:
DECLARE SHORT SQLDrivers IN odbc32;
    INTEGER   EnvironmentHandle,;
    INTEGER   Direction,;
    STRING  @ DriverDescription,;
    INTEGER   BufferLength1,;
    INTEGER @ DescriptionLengthPtr,;
    STRING  @ DriverAttributes,;
    INTEGER   BufferLength2,;
    INTEGER @ AttributesLengthPtr

Parameters:
EnvironmentHandle
[Input]
Environment handle.

Direction
[Input]
Determines whether the Driver Manager fetches the next driver description in the list (SQL_FETCH_NEXT) or whether the search starts from the beginning of the list (SQL_FETCH_FIRST).

DriverDescription
[Output]
Pointer to a buffer in which to return the driver description.

BufferLength1
[Input]
Length of the *DriverDescription buffer, in bytes.

DescriptionLengthPtr
[Output]
Pointer to a buffer in which to return the total number of bytes (excluding the null-termination byte) available to return in *DriverDescription.

DriverAttributes
[Output]
Pointer to a buffer in which to return the list of driver attribute value pairs (see "Comments").

BufferLength2
[Input]
Length of the *DriverAttributes buffer, in bytes.

AttributesLengthPtr
[Output]
Pointer to a buffer in which to return the total number of bytes (excluding the null-termination byte) available to return in *DriverAttributes.
Return value:
SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_NO_DATA, SQL_ERROR, or SQL_INVALID_HANDLE.
My comment:
SQLGetInstalledDrivers reads the [ODBC Drivers] section of the system information and returns a list of descriptions of the installed drivers.
Word Index links for the SQLDrivers :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-03-10 12:00:21
Modified: 2003-01-28 11:33:47
Visited in last 7 days: 18
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.81.178.153)
10 sec.Function: 'CopyImage'
20 sec.Function: 'SetClipboardData'
30 sec.Function: 'GetUserName'
42 sec.Function: 'NetUserGetInfo'
52 sec.Function: 'RevertToSelf'
1.03 min.Function: 'UpdateResource'
1.2 min.Function: 'ConnectNamedPipe'
1.38 min.Function: 'SendARP'
1.57 min.Function: 'SetVolumeLabel'
1.77 min.Function: 'GetCurrencyFormat'
Google
Advertise here!