ReactOS 0.4.16-dev-122-g325d74c
|
#include <assert.h>
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winnls.h"
#include "sqlext.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "odbcinst.h"
Go to the source code of this file.
Macros | |
#define | COBJMACROS |
Variables | |
static const WCHAR | drivers_key [] = {'S','o','f','t','w','a','r','e','\\','O','D','B','C','\\','O','D','B','C','I','N','S','T','.','I','N','I','\\','O','D','B','C',' ','D','r','i','v','e','r','s',0} |
static const WCHAR | odbcW [] = {'S','o','f','t','w','a','r','e','\\','O','D','B','C',0} |
static const WCHAR | odbcini [] = {'S','o','f','t','w','a','r','e','\\','O','D','B','C','\\','O','D','B','C','I','N','S','T','.','I','N','I','\\',0} |
static const WCHAR | odbcdrivers [] = {'O','D','B','C',' ','D','r','i','v','e','r','s',0} |
static const WCHAR | odbctranslators [] = {'O','D','B','C',' ','T','r','a','n','s','l','a','t','o','r','s',0} |
static UWORD | config_mode = ODBC_BOTH_DSN |
static int | num_errors |
static int | error_code [8] |
static const WCHAR * | error_msg [8] |
static const WCHAR | odbc_error_general_err [] = {'G','e','n','e','r','a','l',' ','e','r','r','o','r',0} |
static const WCHAR | odbc_error_invalid_buff_len [] = {'I','n','v','a','l','i','d',' ','b','u','f','f','e','r',' ','l','e','n','g','t','h',0} |
static const WCHAR | odbc_error_component_not_found [] = {'C','o','m','p','o','n','e','n','t',' ','n','o','t',' ','f','o','u','n','d',0} |
static const WCHAR | odbc_error_out_of_mem [] = {'O','u','t',' ','o','f',' ','m','e','m','o','r','y',0} |
static const WCHAR | odbc_error_invalid_param_sequence [] = {'I','n','v','a','l','i','d',' ','p','a','r','a','m','e','t','e','r',' ','s','e','q','u','e','n','c','e',0} |
static const WCHAR | odbc_error_invalid_param_string [] = {'I','n','v','a','l','i','d',' ','p','a','r','a','m','e','t','e','r',' ','s','t','r','i','n','g',0} |
static const WCHAR | odbc_error_invalid_dsn [] = {'I','n','v','a','l','i','d',' ','D','S','N',0} |
static const WCHAR | odbc_error_load_lib_failed [] = {'L','o','a','d',' ','L','i','b','r','a','r','y',' ','F','a','i','l','e','d',0} |
static const WCHAR | odbc_error_request_failed [] = {'R','e','q','u','e','s','t',' ','F','a','i','l','e','d',0} |
static const WCHAR | odbc_error_invalid_keyword [] = {'I','n','v','a','l','i','d',' ','k','e','y','w','o','r','d',' ','v','a','l','u','e',0} |
#define COBJMACROS |
Definition at line 26 of file odbccp32.c.
Definition at line 86 of file odbccp32.c.
Referenced by ODBCCPlApplet(), SQLConfigDataSource(), SQLConfigDataSourceW(), SQLConfigDriver(), SQLConfigDriverW(), SQLCreateDataSource(), SQLCreateDataSourceW(), SQLGetAvailableDrivers(), SQLGetAvailableDriversW(), SQLGetConfigMode(), SQLGetInstalledDriversW(), SQLGetPrivateProfileString(), SQLGetPrivateProfileStringW(), SQLGetTranslator(), SQLGetTranslatorW(), SQLInstallDriver(), SQLInstallDriverEx(), SQLInstallDriverExW(), SQLInstallDriverManager(), SQLInstallDriverManagerW(), SQLInstallDriverW(), SQLInstallODBC(), SQLInstallODBCW(), SQLInstallTranslator(), SQLInstallTranslatorEx(), SQLInstallTranslatorExW(), SQLInstallTranslatorW(), SQLManageDataSources(), SQLReadFileDSN(), SQLReadFileDSNW(), SQLRemoveDefaultDataSource(), SQLRemoveDriver(), SQLRemoveDriverManager(), SQLRemoveDriverW(), SQLRemoveDSNFromIni(), SQLRemoveDSNFromIniW(), SQLRemoveTranslator(), SQLRemoveTranslatorW(), SQLSetConfigMode(), SQLValidDSN(), SQLValidDSNW(), SQLWriteDSNToIni(), SQLWriteDSNToIniW(), SQLWriteFileDSN(), SQLWriteFileDSNW(), SQLWritePrivateProfileString(), and SQLWritePrivateProfileStringW().
Definition at line 596 of file odbccp32.c.
Referenced by SQLGetPrivateProfileString(), and SQLGetPrivateProfileStringW().
Definition at line 91 of file odbccp32.c.
Referenced by SQLConfigDriver(), SQLGetPrivateProfileString(), and SQLWritePrivateProfileString().
Definition at line 249 of file odbccp32.c.
Referenced by SQLConfigDriver(), and SQLConfigDriverW().
Definition at line 108 of file odbccp32.c.
Definition at line 75 of file odbccp32.c.
Referenced by load_config_driver(), SQLConfigDriver(), SQLConfigDriverW(), SQLGetInstalledDrivers(), SQLGetInstalledDriversW(), SQLRemoveTranslatorW(), SQLSetConfigMode(), SQLWritePrivateProfileStringW(), and write_config_value().
BOOL WINAPI SQLConfigDataSource | ( | HWND | hwndParent, |
WORD | fRequest, | ||
LPCSTR | lpszDriver, | ||
LPCSTR | lpszAttributes | ||
) |
Definition at line 240 of file odbccp32.c.
Referenced by test_SQLConfigDataSource().
BOOL WINAPI SQLConfigDataSourceW | ( | HWND | hwndParent, |
WORD | fRequest, | ||
LPCWSTR | lpszDriver, | ||
LPCWSTR | lpszAttributes | ||
) |
Definition at line 225 of file odbccp32.c.
Referenced by ITERATE_InstallODBCDataSource(), and ITERATE_RemoveODBCDataSource().
BOOL WINAPI SQLConfigDriver | ( | HWND | hwnd, |
WORD | request, | ||
LPCSTR | driver, | ||
LPCSTR | args, | ||
LPSTR | msg, | ||
WORD | msgmax, | ||
WORD * | msgout | ||
) |
Definition at line 397 of file odbccp32.c.
Referenced by test_SQLInstallDriverEx().
BOOL WINAPI SQLConfigDriverW | ( | HWND | hwnd, |
WORD | request, | ||
LPCWSTR | driver, | ||
LPCWSTR | args, | ||
LPWSTR | msg, | ||
WORD | msgmax, | ||
WORD * | msgout | ||
) |
Definition at line 365 of file odbccp32.c.
Definition at line 459 of file odbccp32.c.
Definition at line 451 of file odbccp32.c.
BOOL WINAPI SQLGetAvailableDrivers | ( | LPCSTR | lpszInfFile, |
LPSTR | lpszBuf, | ||
WORD | cbBufMax, | ||
WORD * | pcbBufOut | ||
) |
Definition at line 476 of file odbccp32.c.
BOOL WINAPI SQLGetAvailableDriversW | ( | LPCWSTR | lpszInfFile, |
LPWSTR | lpszBuf, | ||
WORD | cbBufMax, | ||
WORD * | pcbBufOut | ||
) |
Definition at line 467 of file odbccp32.c.
Definition at line 485 of file odbccp32.c.
Referenced by test_SQLConfigMode().
Definition at line 561 of file odbccp32.c.
Referenced by odbc_absent(), odbc_present(), test_install_remove_odbc(), test_SQLGetInstalledDrivers(), and test_SQLInstallerError().
Definition at line 494 of file odbccp32.c.
Referenced by SQLGetInstalledDrivers().
int WINAPI SQLGetPrivateProfileString | ( | LPCSTR | section, |
LPCSTR | entry, | ||
LPCSTR | defvalue, | ||
LPSTR | buff, | ||
int | buff_len, | ||
LPCSTR | filename | ||
) |
Definition at line 687 of file odbccp32.c.
Referenced by test_SQLGetPrivateProfileString().
int WINAPI SQLGetPrivateProfileStringW | ( | LPCWSTR | section, |
LPCWSTR | entry, | ||
LPCWSTR | defvalue, | ||
LPWSTR | buff, | ||
int | buff_len, | ||
LPCWSTR | filename | ||
) |
Definition at line 615 of file odbccp32.c.
Referenced by test_SQLGetPrivateProfileStringW().
BOOL WINAPI SQLGetTranslator | ( | HWND | hwndParent, |
LPSTR | lpszName, | ||
WORD | cbNameMax, | ||
WORD * | pcbNameOut, | ||
LPSTR | lpszPath, | ||
WORD | cbPathMax, | ||
WORD * | pcbPathOut, | ||
DWORD * | pvOption | ||
) |
Definition at line 779 of file odbccp32.c.
BOOL WINAPI SQLGetTranslatorW | ( | HWND | hwndParent, |
LPWSTR | lpszName, | ||
WORD | cbNameMax, | ||
WORD * | pcbNameOut, | ||
LPWSTR | lpszPath, | ||
WORD | cbPathMax, | ||
WORD * | pcbPathOut, | ||
DWORD * | pvOption | ||
) |
Definition at line 768 of file odbccp32.c.
|
static |
Definition at line 173 of file odbccp32.c.
Referenced by SQLInstallerError().
Definition at line 135 of file odbccp32.c.
Referenced by SQLInstallDriverEx(), SQLInstallTranslatorEx(), SQLRemoveDriver(), and SQLRemoveTranslator().
Definition at line 115 of file odbccp32.c.
Referenced by SQLInstallDriverEx(), and SQLInstallTranslatorEx().
BOOL WINAPI SQLInstallDriver | ( | LPCSTR | lpszInfFile, |
LPCSTR | lpszDriver, | ||
LPSTR | lpszPath, | ||
WORD | cbPathMax, | ||
WORD * | pcbPathOut | ||
) |
Definition at line 806 of file odbccp32.c.
BOOL WINAPI SQLInstallDriverEx | ( | LPCSTR | lpszDriver, |
LPCSTR | lpszPathIn, | ||
LPSTR | lpszPathOut, | ||
WORD | cbPathOutMax, | ||
WORD * | pcbPathOut, | ||
WORD | fRequest, | ||
LPDWORD | lpdwUsageCount | ||
) |
Definition at line 955 of file odbccp32.c.
Referenced by SQLInstallDriver(), test_SQLGetInstalledDrivers(), and test_SQLInstallDriverEx().
BOOL WINAPI SQLInstallDriverExW | ( | LPCWSTR | lpszDriver, |
LPCWSTR | lpszPathIn, | ||
LPWSTR | lpszPathOut, | ||
WORD | cbPathOutMax, | ||
WORD * | pcbPathOut, | ||
WORD | fRequest, | ||
LPDWORD | lpdwUsageCount | ||
) |
Definition at line 928 of file odbccp32.c.
Referenced by ITERATE_InstallODBCDriver(), SQLInstallDriverEx(), and SQLInstallDriverW().
Definition at line 1025 of file odbccp32.c.
Referenced by test_SQLInstallDriverManager().
Definition at line 999 of file odbccp32.c.
Referenced by SQLInstallDriverManager().
BOOL WINAPI SQLInstallDriverW | ( | LPCWSTR | lpszInfFile, |
LPCWSTR | lpszDriver, | ||
LPWSTR | lpszPath, | ||
WORD | cbPathMax, | ||
WORD * | pcbPathOut | ||
) |
Definition at line 790 of file odbccp32.c.
SQLRETURN WINAPI SQLInstallerError | ( | WORD | iError, |
DWORD * | pfErrorCode, | ||
LPSTR | lpszErrorMsg, | ||
WORD | cbErrorMsgMax, | ||
WORD * | pcbErrorMsg | ||
) |
Definition at line 1138 of file odbccp32.c.
Referenced by check_error_(), test_SQLConfigDataSource(), and test_SQLInstallerError().
SQLRETURN WINAPI SQLInstallerErrorW | ( | WORD | iError, |
DWORD * | pfErrorCode, | ||
LPWSTR | lpszErrorMsg, | ||
WORD | cbErrorMsgMax, | ||
WORD * | pcbErrorMsg | ||
) |
Definition at line 1079 of file odbccp32.c.
Referenced by SQLInstallerError(), test_SQLConfigMode(), test_SQLGetInstalledDrivers(), test_SQLInstallDriverEx(), test_SQLInstallDriverManager(), test_SQLInstallTranslatorEx(), and test_SQLWritePrivateProfileString().
BOOL WINAPI SQLInstallODBC | ( | HWND | hwndParent, |
LPCSTR | lpszInfFile, | ||
LPCSTR | lpszSrcPath, | ||
LPCSTR | lpszDrivers | ||
) |
Definition at line 1069 of file odbccp32.c.
BOOL WINAPI SQLInstallODBCW | ( | HWND | hwndParent, |
LPCWSTR | lpszInfFile, | ||
LPCWSTR | lpszSrcPath, | ||
LPCWSTR | lpszDrivers | ||
) |
Definition at line 1059 of file odbccp32.c.
BOOL WINAPI SQLInstallTranslator | ( | LPCSTR | lpszInfFile, |
LPCSTR | lpszTranslator, | ||
LPCSTR | lpszPathIn, | ||
LPSTR | lpszPathOut, | ||
WORD | cbPathOutMax, | ||
WORD * | pcbPathOut, | ||
WORD | fRequest, | ||
LPDWORD | lpdwUsageCount | ||
) |
Definition at line 1241 of file odbccp32.c.
BOOL WINAPI SQLInstallTranslatorEx | ( | LPCSTR | lpszTranslator, |
LPCSTR | lpszPathIn, | ||
LPSTR | lpszPathOut, | ||
WORD | cbPathOutMax, | ||
WORD * | pcbPathOut, | ||
WORD | fRequest, | ||
LPDWORD | lpdwUsageCount | ||
) |
Definition at line 1193 of file odbccp32.c.
Referenced by SQLInstallTranslator(), and test_SQLInstallTranslatorEx().
BOOL WINAPI SQLInstallTranslatorExW | ( | LPCWSTR | lpszTranslator, |
LPCWSTR | lpszPathIn, | ||
LPWSTR | lpszPathOut, | ||
WORD | cbPathOutMax, | ||
WORD * | pcbPathOut, | ||
WORD | fRequest, | ||
LPDWORD | lpdwUsageCount | ||
) |
Definition at line 1166 of file odbccp32.c.
Referenced by ITERATE_InstallODBCTranslator(), SQLInstallTranslatorEx(), and SQLInstallTranslatorW().
BOOL WINAPI SQLInstallTranslatorW | ( | LPCWSTR | lpszInfFile, |
LPCWSTR | lpszTranslator, | ||
LPCWSTR | lpszPathIn, | ||
LPWSTR | lpszPathOut, | ||
WORD | cbPathOutMax, | ||
WORD * | pcbPathOut, | ||
WORD | fRequest, | ||
LPDWORD | lpdwUsageCount | ||
) |
Definition at line 1257 of file odbccp32.c.
Definition at line 1273 of file odbccp32.c.
Definition at line 1288 of file odbccp32.c.
Definition at line 1281 of file odbccp32.c.
BOOL WINAPI SQLReadFileDSN | ( | LPCSTR | lpszFileName, |
LPCSTR | lpszAppName, | ||
LPCSTR | lpszKeyName, | ||
LPSTR | lpszString, | ||
WORD | cbString, | ||
WORD * | pcbString | ||
) |
Definition at line 1306 of file odbccp32.c.
BOOL WINAPI SQLReadFileDSNW | ( | LPCWSTR | lpszFileName, |
LPCWSTR | lpszAppName, | ||
LPCWSTR | lpszKeyName, | ||
LPWSTR | lpszString, | ||
WORD | cbString, | ||
WORD * | pcbString | ||
) |
Definition at line 1295 of file odbccp32.c.
Definition at line 1317 of file odbccp32.c.
Definition at line 1380 of file odbccp32.c.
Referenced by test_SQLGetInstalledDrivers(), and test_SQLInstallDriverEx().
Definition at line 1397 of file odbccp32.c.
Definition at line 1325 of file odbccp32.c.
Referenced by ITERATE_RemoveODBCDriver(), and SQLRemoveDriver().
Definition at line 1413 of file odbccp32.c.
Definition at line 1405 of file odbccp32.c.
Definition at line 1486 of file odbccp32.c.
Referenced by test_SQLInstallTranslatorEx().
Definition at line 1421 of file odbccp32.c.
Referenced by ITERATE_RemoveODBCTranslator(), and SQLRemoveTranslator().
Definition at line 1501 of file odbccp32.c.
Referenced by test_SQLConfigMode().
Definition at line 1532 of file odbccp32.c.
Referenced by test_SQLValidDSN().
Definition at line 1518 of file odbccp32.c.
Referenced by test_SQLValidDSNW().
Definition at line 1553 of file odbccp32.c.
Definition at line 1546 of file odbccp32.c.
BOOL WINAPI SQLWriteFileDSN | ( | LPCSTR | lpszFileName, |
LPCSTR | lpszAppName, | ||
LPCSTR | lpszKeyName, | ||
LPCSTR | lpszString | ||
) |
Definition at line 1570 of file odbccp32.c.
BOOL WINAPI SQLWriteFileDSNW | ( | LPCWSTR | lpszFileName, |
LPCWSTR | lpszAppName, | ||
LPCWSTR | lpszKeyName, | ||
LPCWSTR | lpszString | ||
) |
Definition at line 1560 of file odbccp32.c.
BOOL WINAPI SQLWritePrivateProfileString | ( | LPCSTR | lpszSection, |
LPCSTR | lpszEntry, | ||
LPCSTR | lpszString, | ||
LPCSTR | lpszFilename | ||
) |
Definition at line 1623 of file odbccp32.c.
Referenced by test_SQLGetPrivateProfileString(), test_SQLGetPrivateProfileStringW(), and test_SQLWritePrivateProfileString().
BOOL WINAPI SQLWritePrivateProfileStringW | ( | LPCWSTR | lpszSection, |
LPCWSTR | lpszEntry, | ||
LPCWSTR | lpszString, | ||
LPCWSTR | lpszFilename | ||
) |
Definition at line 1580 of file odbccp32.c.
Referenced by SQLWritePrivateProfileString().
WINE_DEFAULT_DEBUG_CHANNEL | ( | odbc | ) |
Definition at line 307 of file odbccp32.c.
Referenced by SQLConfigDriver(), and SQLConfigDriverW().
|
static |
Definition at line 822 of file odbccp32.c.
Referenced by SQLInstallDriverExW(), and SQLInstallTranslatorExW().
|
static |
Definition at line 54 of file odbccp32.c.
Referenced by SQLGetConfigMode(), SQLSetConfigMode(), and test_SQLConfigMode().
|
static |
Definition at line 44 of file odbccp32.c.
Referenced by LoadRegistryMMEDrivers(), and SQLGetInstalledDriversW().
|
static |
Definition at line 61 of file odbccp32.c.
Referenced by check_file_size(), DdeGetLastError(), do_error_dialog(), error_code_messagebox(), ErrorToMmResult(), licence_process_error_alert(), push_error(), REGPROC_print_error(), SQLInstallerErrorW(), test_file_truncate(), test_SQLConfigMode(), test_SQLGetInstalledDrivers(), test_SQLInstallDriverEx(), test_SQLInstallDriverManager(), test_SQLInstallTranslatorEx(), test_SQLWritePrivateProfileString(), and verify_output_file().
Definition at line 62 of file odbccp32.c.
Referenced by __ext4_ext_check(), ext3_check_dir_entry(), MAPISendMail(), MAPISendMailW(), push_error(), and SQLInstallerErrorW().
|
static |
Definition at line 60 of file odbccp32.c.
Referenced by clear_errors(), main(), partial_stripe_read(), push_error(), read_data_raid6(), scrub_raid5_stripe(), scrub_raid6_stripe(), and SQLInstallerErrorW().
|
static |
Definition at line 65 of file odbccp32.c.
Referenced by load_config_driver(), SQLGetInstalledDriversW(), SQLRemoveTranslatorW(), and write_config_value().
|
static |
Definition at line 63 of file odbccp32.c.
Referenced by SQLGetInstalledDriversW().
|
static |
Definition at line 64 of file odbccp32.c.
Referenced by SQLGetInstalledDrivers(), and SQLGetInstalledDriversW().
Definition at line 69 of file odbccp32.c.
Referenced by load_config_driver().
|
static |
Definition at line 72 of file odbccp32.c.
Referenced by write_config_value().
|
static |
Definition at line 67 of file odbccp32.c.
Referenced by SQLSetConfigMode().
|
static |
Definition at line 68 of file odbccp32.c.
Referenced by SQLWritePrivateProfileStringW().
|
static |
Definition at line 70 of file odbccp32.c.
Referenced by load_config_driver().
|
static |
Definition at line 66 of file odbccp32.c.
Referenced by load_config_driver(), SQLConfigDriver(), SQLGetInstalledDrivers(), and write_config_value().
|
static |
Definition at line 71 of file odbccp32.c.
Referenced by SQLConfigDriver(), and SQLConfigDriverW().
Definition at line 47 of file odbccp32.c.
Referenced by SQLInstallDriverExW(), and SQLRemoveDriverW().
|
static |
Definition at line 46 of file odbccp32.c.
Referenced by load_config_driver(), SQLRemoveDriverW(), SQLRemoveTranslatorW(), test_SQLGetPrivateProfileStringW(), write_config_value(), and write_registry_values().
|
static |
Definition at line 48 of file odbccp32.c.
Referenced by SQLInstallTranslatorExW(), and SQLRemoveTranslatorW().