NCBI C++ ToolKit
Classes | Macros | Typedefs | Functions
odbcinst.h File Reference
#include <stdio.h>
#include "sql.h"
+ Include dependency graph for odbcinst.h:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  tODBCINSTWND
 Our generic window handle. More...
 

Macros

#define BOOL   int
 
#define WINVER   0x0400
 
#define ODBC_ADD_DSN   1
 
#define ODBC_CONFIG_DSN   2
 
#define ODBC_REMOVE_DSN   3
 
#define ODBC_ADD_SYS_DSN   4
 
#define ODBC_CONFIG_SYS_DSN   5
 
#define ODBC_REMOVE_SYS_DSN   6
 
#define ODBC_REMOVE_DEFAULT_DSN   7
 
#define ODBC_INSTALL_INQUIRY   1
 
#define ODBC_INSTALL_COMPLETE   2
 
#define ODBC_INSTALL_DRIVER   1
 
#define ODBC_REMOVE_DRIVER   2
 
#define ODBC_CONFIG_DRIVER   3
 
#define ODBC_CONFIG_DRIVER_MAX   100
 
#define ODBC_BOTH_DSN   0
 
#define ODBC_USER_DSN   1
 
#define ODBC_SYSTEM_DSN   2
 
#define ODBC_ERROR_GENERAL_ERR   1
 
#define ODBC_ERROR_INVALID_BUFF_LEN   2
 
#define ODBC_ERROR_INVALID_HWND   3
 
#define ODBC_ERROR_INVALID_STR   4
 
#define ODBC_ERROR_INVALID_REQUEST_TYPE   5
 
#define ODBC_ERROR_COMPONENT_NOT_FOUND   6
 
#define ODBC_ERROR_INVALID_NAME   7
 
#define ODBC_ERROR_INVALID_KEYWORD_VALUE   8
 
#define ODBC_ERROR_INVALID_DSN   9
 
#define ODBC_ERROR_INVALID_INF   10
 
#define ODBC_ERROR_REQUEST_FAILED   11
 
#define ODBC_ERROR_INVALID_PATH   12
 
#define ODBC_ERROR_LOAD_LIB_FAILED   13
 
#define ODBC_ERROR_INVALID_PARAM_SEQUENCE   14
 
#define ODBC_ERROR_INVALID_LOG_FILE   15
 
#define ODBC_ERROR_USER_CANCELED   16
 
#define ODBC_ERROR_USAGE_UPDATE_FAILED   17
 
#define ODBC_ERROR_CREATE_DSN_FAILED   18
 
#define ODBC_ERROR_WRITING_SYSINFO_FAILED   19
 
#define ODBC_ERROR_REMOVE_DSN_FAILED   20
 
#define ODBC_ERROR_OUT_OF_MEM   21
 
#define ODBC_ERROR_OUTPUT_STRING_TRUNCATED   22
 
#define EXPORT
 
#define INSTAPI
 

Typedefs

typedef struct tODBCINSTWND ODBCINSTWND
 Our generic window handle. More...
 
typedef struct tODBCINSTWNDHODBCINSTWND
 

Functions

int SQLInstallODBC (HWND hwndParent, LPCSTR lpszInfFile, LPCSTR lpszSrcPath, LPCSTR lpszDrivers)
 
int SQLManageDataSources (HWND hwndParent)
 
int SQLCreateDataSource (HWND hwndParent, LPCSTR lpszDSN)
 
int SQLGetTranslator (HWND hwnd, LPSTR lpszName, WORD cbNameMax, WORD *pcbNameOut, LPSTR lpszPath, WORD cbPathMax, WORD *pcbPathOut, DWORD *pvOption)
 
int SQLInstallDriver (LPCSTR lpszInfFile, LPCSTR lpszDriver, LPSTR lpszPath, WORD cbPathMax, WORD *pcbPathOut)
 
int SQLInstallDriverManager (LPSTR lpszPath, WORD cbPathMax, WORD *pcbPathOut)
 
int SQLGetInstalledDrivers (LPSTR lpszBuf, WORD cbBufMax, WORD *pcbBufOut)
 
int SQLGetAvailableDrivers (LPCSTR lpszInfFile, LPSTR lpszBuf, WORD cbBufMax, WORD *pcbBufOut)
 
int SQLConfigDataSource (HWND hwndParent, WORD fRequest, LPCSTR lpszDriver, LPCSTR lpszAttributes)
 
int SQLRemoveDefaultDataSource (void)
 
int SQLWriteDSNToIni (LPCSTR lpszDSN, LPCSTR lpszDriver)
 
int SQLRemoveDSNFromIni (LPCSTR lpszDSN)
 
int SQLValidDSN (LPCSTR lpszDSN)
 
int SQLWritePrivateProfileString (LPCSTR lpszSection, LPCSTR lpszEntry, LPCSTR lpszString, LPCSTR lpszFilename)
 
int SQLRemoveDriverManager (LPDWORD lpdwUsageCount)
 
int SQLInstallTranslator (LPCSTR lpszInfFile, LPCSTR lpszTranslator, LPCSTR lpszPathIn, LPSTR lpszPathOut, WORD cbPathOutMax, WORD *pcbPathOut, WORD fRequest, LPDWORD lpdwUsageCount)
 
int SQLRemoveTranslator (LPCSTR lpszTranslator, LPDWORD lpdwUsageCount)
 
int SQLRemoveDriver (LPCSTR lpszDriver, int fRemoveDSN, LPDWORD lpdwUsageCount)
 
int SQLConfigDriver (HWND hwndParent, WORD fRequest, LPCSTR lpszDriver, LPCSTR lpszArgs, LPSTR lpszMsg, WORD cbMsgMax, WORD *pcbMsgOut)
 
SQLRETURN SQLInstallerError (WORD iError, DWORD *pfErrorCode, LPSTR lpszErrorMsg, WORD cbErrorMsgMax, WORD *pcbErrorMsg)
 
SQLRETURN SQLPostInstallerError (DWORD dwErrorCode, LPCSTR lpszErrMsg)
 
int SQLWriteFileDSN (LPCSTR lpszFileName, LPCSTR lpszAppName, LPCSTR lpszKeyName, LPCSTR lpszString)
 
int SQLReadFileDSN (LPCSTR lpszFileName, LPCSTR lpszAppName, LPCSTR lpszKeyName, LPSTR lpszString, WORD cbString, WORD *pcbString)
 
int SQLInstallDriverEx (LPCSTR lpszDriver, LPCSTR lpszPathIn, LPSTR lpszPathOut, WORD cbPathOutMax, WORD *pcbPathOut, WORD fRequest, LPDWORD lpdwUsageCount)
 
int SQLInstallTranslatorEx (LPCSTR lpszTranslator, LPCSTR lpszPathIn, LPSTR lpszPathOut, WORD cbPathOutMax, WORD *pcbPathOut, WORD fRequest, LPDWORD lpdwUsageCount)
 
int SQLGetConfigMode (UWORD *pwConfigMode)
 
int SQLSetConfigMode (UWORD wConfigMode)
 
int ConfigDSN (HWND hwndParent, WORD fRequest, LPCSTR lpszDriver, LPCSTR lpszAttributes)
 Add, remove, or modify a data source. More...
 
int ConfigTranslator (HWND hwndParent, DWORD *pvOption)
 
int ConfigDriver (HWND hwndParent, WORD fRequest, LPCSTR lpszDriver, LPCSTR lpszArgs, LPSTR lpszMsg, WORD cbMsgMax, WORD *pcbMsgOut)
 Add or remove an ODBC driver. More...
 
int SQLInstallODBCW (HWND hwndParent, LPCWSTR lpszInfFile, LPCWSTR lpszSrcPath, LPCWSTR lpszDrivers)
 
int SQLCreateDataSourceW (HWND hwndParent, LPCWSTR lpszDSN)
 
int SQLGetTranslatorW (HWND hwnd, LPWSTR lpszName, WORD cbNameMax, WORD *pcbNameOut, LPWSTR lpszPath, WORD cbPathMax, WORD *pcbPathOut, DWORD *pvOption)
 
int SQLInstallDriverW (LPCWSTR lpszInfFile, LPCWSTR lpszDriver, LPWSTR lpszPath, WORD cbPathMax, WORD *pcbPathOut)
 
int SQLInstallDriverManagerW (LPWSTR lpszPath, WORD cbPathMax, WORD *pcbPathOut)
 
int SQLGetInstalledDriversW (LPWSTR lpszBuf, WORD cbBufMax, WORD *pcbBufOut)
 
int SQLGetAvailableDriversW (LPCWSTR lpszInfFile, LPWSTR lpszBuf, WORD cbBufMax, WORD *pcbBufOut)
 
int SQLConfigDataSourceW (HWND hwndParent, WORD fRequest, LPCWSTR lpszDriver, LPCWSTR lpszAttributes)
 
int SQLWriteDSNToIniW (LPCWSTR lpszDSN, LPCWSTR lpszDriver)
 
int SQLRemoveDSNFromIniW (LPCWSTR lpszDSN)
 
int SQLValidDSNW (LPCWSTR lpszDSN)
 
int SQLWritePrivateProfileStringW (LPCWSTR lpszSection, LPCWSTR lpszEntry, LPCWSTR lpszString, LPCWSTR lpszFilename)
 
int SQLGetPrivateProfileStringW (LPCWSTR lpszSection, LPCWSTR lpszEntry, LPCWSTR lpszDefault, LPWSTR lpszRetBuffer, int cbRetBuffer, LPCWSTR lpszFilename)
 
int SQLInstallTranslatorW (LPCWSTR lpszInfFile, LPCWSTR lpszTranslator, LPCWSTR lpszPathIn, LPWSTR lpszPathOut, WORD cbPathOutMax, WORD *pcbPathOut, WORD fRequest, LPDWORD lpdwUsageCount)
 
int SQLRemoveTranslatorW (LPCWSTR lpszTranslator, LPDWORD lpdwUsageCount)
 
int SQLRemoveDriverW (LPCWSTR lpszDriver, int fRemoveDSN, LPDWORD lpdwUsageCount)
 
int SQLConfigDriverW (HWND hwndParent, WORD fRequest, LPCWSTR lpszDriver, LPCWSTR lpszArgs, LPWSTR lpszMsg, WORD cbMsgMax, WORD *pcbMsgOut)
 
SQLRETURN SQLInstallerErrorW (WORD iError, DWORD *pfErrorCode, LPWSTR lpszErrorMsg, WORD cbErrorMsgMax, WORD *pcbErrorMsg)
 
SQLRETURN SQLPostInstallerErrorW (DWORD dwErrorCode, LPCWSTR lpszErrorMsg)
 
int SQLWriteFileDSNW (LPCWSTR lpszFileName, LPCWSTR lpszAppName, LPCWSTR lpszKeyName, LPCWSTR lpszString)
 
int SQLReadFileDSNW (LPCWSTR lpszFileName, LPCWSTR lpszAppName, LPCWSTR lpszKeyName, LPWSTR lpszString, WORD cbString, WORD *pcbString)
 
int SQLInstallDriverExW (LPCWSTR lpszDriver, LPCWSTR lpszPathIn, LPWSTR lpszPathOut, WORD cbPathOutMax, WORD *pcbPathOut, WORD fRequest, LPDWORD lpdwUsageCount)
 
int SQLInstallTranslatorExW (LPCWSTR lpszTranslator, LPCWSTR lpszPathIn, LPWSTR lpszPathOut, WORD cbPathOutMax, WORD *pcbPathOut, WORD fRequest, LPDWORD lpdwUsageCount)
 
int ConfigDSNW (HWND hwndParent, WORD fRequest, LPCWSTR lpszDriver, LPCWSTR lpszAttributes)
 
int ConfigDriverW (HWND hwndParent, WORD fRequest, LPCWSTR lpszDriver, LPCWSTR lpszArgs, LPWSTR lpszMsg, WORD cbMsgMax, WORD *pcbMsgOut)
 

Macro Definition Documentation

◆ BOOL

#define BOOL   int

Definition at line 18 of file odbcinst.h.

◆ EXPORT

#define EXPORT

Definition at line 148 of file odbcinst.h.

◆ INSTAPI

#define INSTAPI

Definition at line 154 of file odbcinst.h.

◆ ODBC_ADD_DSN

#define ODBC_ADD_DSN   1

Definition at line 91 of file odbcinst.h.

◆ ODBC_ADD_SYS_DSN

#define ODBC_ADD_SYS_DSN   4

Definition at line 96 of file odbcinst.h.

◆ ODBC_BOTH_DSN

#define ODBC_BOTH_DSN   0

Definition at line 116 of file odbcinst.h.

◆ ODBC_CONFIG_DRIVER

#define ODBC_CONFIG_DRIVER   3

Definition at line 110 of file odbcinst.h.

◆ ODBC_CONFIG_DRIVER_MAX

#define ODBC_CONFIG_DRIVER_MAX   100

Definition at line 111 of file odbcinst.h.

◆ ODBC_CONFIG_DSN

#define ODBC_CONFIG_DSN   2

Definition at line 92 of file odbcinst.h.

◆ ODBC_CONFIG_SYS_DSN

#define ODBC_CONFIG_SYS_DSN   5

Definition at line 97 of file odbcinst.h.

◆ ODBC_ERROR_COMPONENT_NOT_FOUND

#define ODBC_ERROR_COMPONENT_NOT_FOUND   6

Definition at line 128 of file odbcinst.h.

◆ ODBC_ERROR_CREATE_DSN_FAILED

#define ODBC_ERROR_CREATE_DSN_FAILED   18

Definition at line 140 of file odbcinst.h.

◆ ODBC_ERROR_GENERAL_ERR

#define ODBC_ERROR_GENERAL_ERR   1

Definition at line 123 of file odbcinst.h.

◆ ODBC_ERROR_INVALID_BUFF_LEN

#define ODBC_ERROR_INVALID_BUFF_LEN   2

Definition at line 124 of file odbcinst.h.

◆ ODBC_ERROR_INVALID_DSN

#define ODBC_ERROR_INVALID_DSN   9

Definition at line 131 of file odbcinst.h.

◆ ODBC_ERROR_INVALID_HWND

#define ODBC_ERROR_INVALID_HWND   3

Definition at line 125 of file odbcinst.h.

◆ ODBC_ERROR_INVALID_INF

#define ODBC_ERROR_INVALID_INF   10

Definition at line 132 of file odbcinst.h.

◆ ODBC_ERROR_INVALID_KEYWORD_VALUE

#define ODBC_ERROR_INVALID_KEYWORD_VALUE   8

Definition at line 130 of file odbcinst.h.

◆ ODBC_ERROR_INVALID_LOG_FILE

#define ODBC_ERROR_INVALID_LOG_FILE   15

Definition at line 137 of file odbcinst.h.

◆ ODBC_ERROR_INVALID_NAME

#define ODBC_ERROR_INVALID_NAME   7

Definition at line 129 of file odbcinst.h.

◆ ODBC_ERROR_INVALID_PARAM_SEQUENCE

#define ODBC_ERROR_INVALID_PARAM_SEQUENCE   14

Definition at line 136 of file odbcinst.h.

◆ ODBC_ERROR_INVALID_PATH

#define ODBC_ERROR_INVALID_PATH   12

Definition at line 134 of file odbcinst.h.

◆ ODBC_ERROR_INVALID_REQUEST_TYPE

#define ODBC_ERROR_INVALID_REQUEST_TYPE   5

Definition at line 127 of file odbcinst.h.

◆ ODBC_ERROR_INVALID_STR

#define ODBC_ERROR_INVALID_STR   4

Definition at line 126 of file odbcinst.h.

◆ ODBC_ERROR_LOAD_LIB_FAILED

#define ODBC_ERROR_LOAD_LIB_FAILED   13

Definition at line 135 of file odbcinst.h.

◆ ODBC_ERROR_OUT_OF_MEM

#define ODBC_ERROR_OUT_OF_MEM   21

Definition at line 143 of file odbcinst.h.

◆ ODBC_ERROR_OUTPUT_STRING_TRUNCATED

#define ODBC_ERROR_OUTPUT_STRING_TRUNCATED   22

Definition at line 144 of file odbcinst.h.

◆ ODBC_ERROR_REMOVE_DSN_FAILED

#define ODBC_ERROR_REMOVE_DSN_FAILED   20

Definition at line 142 of file odbcinst.h.

◆ ODBC_ERROR_REQUEST_FAILED

#define ODBC_ERROR_REQUEST_FAILED   11

Definition at line 133 of file odbcinst.h.

◆ ODBC_ERROR_USAGE_UPDATE_FAILED

#define ODBC_ERROR_USAGE_UPDATE_FAILED   17

Definition at line 139 of file odbcinst.h.

◆ ODBC_ERROR_USER_CANCELED

#define ODBC_ERROR_USER_CANCELED   16

Definition at line 138 of file odbcinst.h.

◆ ODBC_ERROR_WRITING_SYSINFO_FAILED

#define ODBC_ERROR_WRITING_SYSINFO_FAILED   19

Definition at line 141 of file odbcinst.h.

◆ ODBC_INSTALL_COMPLETE

#define ODBC_INSTALL_COMPLETE   2

Definition at line 105 of file odbcinst.h.

◆ ODBC_INSTALL_DRIVER

#define ODBC_INSTALL_DRIVER   1

Definition at line 108 of file odbcinst.h.

◆ ODBC_INSTALL_INQUIRY

#define ODBC_INSTALL_INQUIRY   1

Definition at line 104 of file odbcinst.h.

◆ ODBC_REMOVE_DEFAULT_DSN

#define ODBC_REMOVE_DEFAULT_DSN   7

Definition at line 100 of file odbcinst.h.

◆ ODBC_REMOVE_DRIVER

#define ODBC_REMOVE_DRIVER   2

Definition at line 109 of file odbcinst.h.

◆ ODBC_REMOVE_DSN

#define ODBC_REMOVE_DSN   3

Definition at line 93 of file odbcinst.h.

◆ ODBC_REMOVE_SYS_DSN

#define ODBC_REMOVE_SYS_DSN   6

Definition at line 98 of file odbcinst.h.

◆ ODBC_SYSTEM_DSN

#define ODBC_SYSTEM_DSN   2

Definition at line 118 of file odbcinst.h.

◆ ODBC_USER_DSN

#define ODBC_USER_DSN   1

Definition at line 117 of file odbcinst.h.

◆ WINVER

#define WINVER   0x0400

Definition at line 87 of file odbcinst.h.

Typedef Documentation

◆ HODBCINSTWND

typedef struct tODBCINSTWND * HODBCINSTWND

◆ ODBCINSTWND

typedef struct tODBCINSTWND ODBCINSTWND

Our generic window handle.

This is used wherever a HWND is needed. The caller inits this according to which UI the caller has (or simply desires). This may be a; console, xlib, qt3, qt4, gtk, mono, carbon, etc.

SQLCreateDataSource (maps to ODBCCreateDataSource entry point in UI plugin)

This function requires a HWND (and it must NOT be NULL as per ODBC spec.). So the caller should *always* init an ODBCINSTWND and cast it to HWND as it is passed to SQLCreateDataSource.

SQLManageDataSources (maps to ODBCManageDataSources entry point in UI plugin)

This function requires a HWND (and it must NOT be NULL as per ODBC spec.). So the caller should *always* init an ODBCINSTWND and cast it to HWND as it is passed to SQLManageDataSources. However; it may make sense to have a NULL hWnd... this is what an ODBC Administrator program would typically do.

Plugin Selection

1. Passing a NULL to a function instead of a valid HODBCINSTWND may result in an error (this is the case with SQLCreateDataSource). In anycase; passing a NULL in this way negates the use of any UI plugin.

2. szUI has a value and it is the file name (no path and no extension) of the UI plugin. The plugin is loaded and the appropriate function is called with hWnd. The caller must have init hWnd in a manner which is appropriate for the UI plugin.

3. Passing an empty szUI indicates that the UI plugin should be determined by other means (see 4). In such a case it is dangerous to use hWnd because it may not match the type expected by the plugin. hWnd will be ignored and a NULL will be passed to the UI plugin.

4. The fallback logic for determining the UI plugin is as follows;

  • use the ODBCINSTUI environment variable to get the UI plugin file name
  • use the ODBCINSTUI value in odbcinst.ini to get the UI plugin file name

NOTE: In the future we may want to consider making HWND of this type instead of having two different types and having to cast HODBCINSTWND into a HWND.

Function Documentation

◆ ConfigDriver()

int ConfigDriver ( HWND  hwndParent,
WORD  fRequest,
LPCSTR  lpszDriver,
LPCSTR  lpszArgs,
LPSTR  lpszMsg,
WORD  cbMsgMax,
WORD pcbMsgOut 
)

Add or remove an ODBC driver.

Definition at line 394 of file winsetup.c.

References NULL, ODBC_INSTALL_DRIVER, ODBC_REMOVE_DRIVER, and TRUE.

◆ ConfigDriverW()

int ConfigDriverW ( HWND  hwndParent,
WORD  fRequest,
LPCWSTR  lpszDriver,
LPCWSTR  lpszArgs,
LPWSTR  lpszMsg,
WORD  cbMsgMax,
WORD pcbMsgOut 
)

◆ ConfigDSN()

int ConfigDSN ( HWND  hwndParent,
WORD  fRequest,
LPCSTR  lpszDriver,
LPCSTR  lpszAttributes 
)

Add, remove, or modify a data source.

Parameters
hwndParentparent for dialog, NULL for batch ops
fRequestrequest type
lpszDriverdriver name (for humans, not DLL name)
lpszAttributesattribute list

Definition at line 300 of file winsetup.c.

References alloc_dsninfo(), buf, DONESOCKET, DSNINFO::dsn, DSNDlgProc(), FALSE, free_dsninfo(), hinstFreeTDS, IDD_DSN, INITSOCKET, NULL, ODBC_ADD_DSN, ODBC_CONFIG_DSN, ODBC_ERROR_REQUEST_FAILED, ODBC_REMOVE_DSN, DSNINFO::origdsn, parse_wacky_dsn_string(), result, SQLPostInstallerError(), SQLRemoveDSNFromIni(), SQLWriteDSNToIni(), strcasecmp, tds_dstr_cstr(), TRUE, validate(), and write_all_strings().

◆ ConfigDSNW()

int ConfigDSNW ( HWND  hwndParent,
WORD  fRequest,
LPCWSTR  lpszDriver,
LPCWSTR  lpszAttributes 
)

◆ ConfigTranslator()

int ConfigTranslator ( HWND  hwndParent,
DWORD pvOption 
)

Definition at line 416 of file winsetup.c.

References TRUE.

◆ SQLConfigDataSource()

int SQLConfigDataSource ( HWND  hwndParent,
WORD  fRequest,
LPCSTR  lpszDriver,
LPCSTR  lpszAttributes 
)

◆ SQLConfigDataSourceW()

int SQLConfigDataSourceW ( HWND  hwndParent,
WORD  fRequest,
LPCWSTR  lpszDriver,
LPCWSTR  lpszAttributes 
)

◆ SQLConfigDriver()

int SQLConfigDriver ( HWND  hwndParent,
WORD  fRequest,
LPCSTR  lpszDriver,
LPCSTR  lpszArgs,
LPSTR  lpszMsg,
WORD  cbMsgMax,
WORD pcbMsgOut 
)

◆ SQLConfigDriverW()

int SQLConfigDriverW ( HWND  hwndParent,
WORD  fRequest,
LPCWSTR  lpszDriver,
LPCWSTR  lpszArgs,
LPWSTR  lpszMsg,
WORD  cbMsgMax,
WORD pcbMsgOut 
)

◆ SQLCreateDataSource()

int SQLCreateDataSource ( HWND  hwndParent,
LPCSTR  lpszDSN 
)

◆ SQLCreateDataSourceW()

int SQLCreateDataSourceW ( HWND  hwndParent,
LPCWSTR  lpszDSN 
)

◆ SQLGetAvailableDrivers()

int SQLGetAvailableDrivers ( LPCSTR  lpszInfFile,
LPSTR  lpszBuf,
WORD  cbBufMax,
WORD pcbBufOut 
)

◆ SQLGetAvailableDriversW()

int SQLGetAvailableDriversW ( LPCWSTR  lpszInfFile,
LPWSTR  lpszBuf,
WORD  cbBufMax,
WORD pcbBufOut 
)

◆ SQLGetConfigMode()

int SQLGetConfigMode ( UWORD pwConfigMode)

Referenced by odbc_read_login_info().

◆ SQLGetInstalledDrivers()

int SQLGetInstalledDrivers ( LPSTR  lpszBuf,
WORD  cbBufMax,
WORD pcbBufOut 
)

◆ SQLGetInstalledDriversW()

int SQLGetInstalledDriversW ( LPWSTR  lpszBuf,
WORD  cbBufMax,
WORD pcbBufOut 
)

◆ SQLGetPrivateProfileStringW()

int SQLGetPrivateProfileStringW ( LPCWSTR  lpszSection,
LPCWSTR  lpszEntry,
LPCWSTR  lpszDefault,
LPWSTR  lpszRetBuffer,
int  cbRetBuffer,
LPCWSTR  lpszFilename 
)

◆ SQLGetTranslator()

int SQLGetTranslator ( HWND  hwnd,
LPSTR  lpszName,
WORD  cbNameMax,
WORD pcbNameOut,
LPSTR  lpszPath,
WORD  cbPathMax,
WORD pcbPathOut,
DWORD pvOption 
)

◆ SQLGetTranslatorW()

int SQLGetTranslatorW ( HWND  hwnd,
LPWSTR  lpszName,
WORD  cbNameMax,
WORD pcbNameOut,
LPWSTR  lpszPath,
WORD  cbPathMax,
WORD pcbPathOut,
DWORD pvOption 
)

◆ SQLInstallDriver()

int SQLInstallDriver ( LPCSTR  lpszInfFile,
LPCSTR  lpszDriver,
LPSTR  lpszPath,
WORD  cbPathMax,
WORD pcbPathOut 
)

◆ SQLInstallDriverEx()

int SQLInstallDriverEx ( LPCSTR  lpszDriver,
LPCSTR  lpszPathIn,
LPSTR  lpszPathOut,
WORD  cbPathOutMax,
WORD pcbPathOut,
WORD  fRequest,
LPDWORD  lpdwUsageCount 
)

Referenced by DllRegisterServer().

◆ SQLInstallDriverExW()

int SQLInstallDriverExW ( LPCWSTR  lpszDriver,
LPCWSTR  lpszPathIn,
LPWSTR  lpszPathOut,
WORD  cbPathOutMax,
WORD pcbPathOut,
WORD  fRequest,
LPDWORD  lpdwUsageCount 
)

◆ SQLInstallDriverManager()

int SQLInstallDriverManager ( LPSTR  lpszPath,
WORD  cbPathMax,
WORD pcbPathOut 
)

◆ SQLInstallDriverManagerW()

int SQLInstallDriverManagerW ( LPWSTR  lpszPath,
WORD  cbPathMax,
WORD pcbPathOut 
)

◆ SQLInstallDriverW()

int SQLInstallDriverW ( LPCWSTR  lpszInfFile,
LPCWSTR  lpszDriver,
LPWSTR  lpszPath,
WORD  cbPathMax,
WORD pcbPathOut 
)

◆ SQLInstallerError()

SQLRETURN SQLInstallerError ( WORD  iError,
DWORD pfErrorCode,
LPSTR  lpszErrorMsg,
WORD  cbErrorMsgMax,
WORD pcbErrorMsg 
)

◆ SQLInstallerErrorW()

SQLRETURN SQLInstallerErrorW ( WORD  iError,
DWORD pfErrorCode,
LPWSTR  lpszErrorMsg,
WORD  cbErrorMsgMax,
WORD pcbErrorMsg 
)

◆ SQLInstallODBC()

int SQLInstallODBC ( HWND  hwndParent,
LPCSTR  lpszInfFile,
LPCSTR  lpszSrcPath,
LPCSTR  lpszDrivers 
)

◆ SQLInstallODBCW()

int SQLInstallODBCW ( HWND  hwndParent,
LPCWSTR  lpszInfFile,
LPCWSTR  lpszSrcPath,
LPCWSTR  lpszDrivers 
)

◆ SQLInstallTranslator()

int SQLInstallTranslator ( LPCSTR  lpszInfFile,
LPCSTR  lpszTranslator,
LPCSTR  lpszPathIn,
LPSTR  lpszPathOut,
WORD  cbPathOutMax,
WORD pcbPathOut,
WORD  fRequest,
LPDWORD  lpdwUsageCount 
)

◆ SQLInstallTranslatorEx()

int SQLInstallTranslatorEx ( LPCSTR  lpszTranslator,
LPCSTR  lpszPathIn,
LPSTR  lpszPathOut,
WORD  cbPathOutMax,
WORD pcbPathOut,
WORD  fRequest,
LPDWORD  lpdwUsageCount 
)

◆ SQLInstallTranslatorExW()

int SQLInstallTranslatorExW ( LPCWSTR  lpszTranslator,
LPCWSTR  lpszPathIn,
LPWSTR  lpszPathOut,
WORD  cbPathOutMax,
WORD pcbPathOut,
WORD  fRequest,
LPDWORD  lpdwUsageCount 
)

◆ SQLInstallTranslatorW()

int SQLInstallTranslatorW ( LPCWSTR  lpszInfFile,
LPCWSTR  lpszTranslator,
LPCWSTR  lpszPathIn,
LPWSTR  lpszPathOut,
WORD  cbPathOutMax,
WORD pcbPathOut,
WORD  fRequest,
LPDWORD  lpdwUsageCount 
)

◆ SQLManageDataSources()

int SQLManageDataSources ( HWND  hwndParent)

◆ SQLPostInstallerError()

SQLRETURN SQLPostInstallerError ( DWORD  dwErrorCode,
LPCSTR  lpszErrMsg 
)

Referenced by ConfigDSN().

◆ SQLPostInstallerErrorW()

SQLRETURN SQLPostInstallerErrorW ( DWORD  dwErrorCode,
LPCWSTR  lpszErrorMsg 
)

◆ SQLReadFileDSN()

int SQLReadFileDSN ( LPCSTR  lpszFileName,
LPCSTR  lpszAppName,
LPCSTR  lpszKeyName,
LPSTR  lpszString,
WORD  cbString,
WORD pcbString 
)

◆ SQLReadFileDSNW()

int SQLReadFileDSNW ( LPCWSTR  lpszFileName,
LPCWSTR  lpszAppName,
LPCWSTR  lpszKeyName,
LPWSTR  lpszString,
WORD  cbString,
WORD pcbString 
)

◆ SQLRemoveDefaultDataSource()

int SQLRemoveDefaultDataSource ( void  )

◆ SQLRemoveDriver()

int SQLRemoveDriver ( LPCSTR  lpszDriver,
int  fRemoveDSN,
LPDWORD  lpdwUsageCount 
)

Referenced by DllUnregisterServer().

◆ SQLRemoveDriverManager()

int SQLRemoveDriverManager ( LPDWORD  lpdwUsageCount)

◆ SQLRemoveDriverW()

int SQLRemoveDriverW ( LPCWSTR  lpszDriver,
int  fRemoveDSN,
LPDWORD  lpdwUsageCount 
)

◆ SQLRemoveDSNFromIni()

int SQLRemoveDSNFromIni ( LPCSTR  lpszDSN)

Referenced by ConfigDSN().

◆ SQLRemoveDSNFromIniW()

int SQLRemoveDSNFromIniW ( LPCWSTR  lpszDSN)

◆ SQLRemoveTranslator()

int SQLRemoveTranslator ( LPCSTR  lpszTranslator,
LPDWORD  lpdwUsageCount 
)

◆ SQLRemoveTranslatorW()

int SQLRemoveTranslatorW ( LPCWSTR  lpszTranslator,
LPDWORD  lpdwUsageCount 
)

◆ SQLSetConfigMode()

int SQLSetConfigMode ( UWORD  wConfigMode)

Referenced by odbc_read_login_info().

◆ SQLValidDSN()

int SQLValidDSN ( LPCSTR  lpszDSN)

Referenced by validate().

◆ SQLValidDSNW()

int SQLValidDSNW ( LPCWSTR  lpszDSN)

◆ SQLWriteDSNToIni()

int SQLWriteDSNToIni ( LPCSTR  lpszDSN,
LPCSTR  lpszDriver 
)

Referenced by ConfigDSN().

◆ SQLWriteDSNToIniW()

int SQLWriteDSNToIniW ( LPCWSTR  lpszDSN,
LPCWSTR  lpszDriver 
)

◆ SQLWriteFileDSN()

int SQLWriteFileDSN ( LPCSTR  lpszFileName,
LPCSTR  lpszAppName,
LPCSTR  lpszKeyName,
LPCSTR  lpszString 
)

◆ SQLWriteFileDSNW()

int SQLWriteFileDSNW ( LPCWSTR  lpszFileName,
LPCWSTR  lpszAppName,
LPCWSTR  lpszKeyName,
LPCWSTR  lpszString 
)

◆ SQLWritePrivateProfileString()

int SQLWritePrivateProfileString ( LPCSTR  lpszSection,
LPCSTR  lpszEntry,
LPCSTR  lpszString,
LPCSTR  lpszFilename 
)

Referenced by odbc_read_login_info().

◆ SQLWritePrivateProfileStringW()

int SQLWritePrivateProfileStringW ( LPCWSTR  lpszSection,
LPCWSTR  lpszEntry,
LPCWSTR  lpszString,
LPCWSTR  lpszFilename 
)
Modified on Mon Jun 24 05:26:50 2024 by modify_doxy.py rev. 669887