2 * Copyright (C) 2005 Mike McCormack
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_ODBCINST_H
20 #define __WINE_ODBCINST_H
28 /* flags for Installer function requests */
29 #define ODBC_INSTALL_INQUIRY 1
30 #define ODBC_INSTALL_COMPLETE 2
32 #define ODBC_INSTALL_DRIVER 1
33 #define ODBC_REMOVE_DRIVER 2
34 #define ODBC_CONFIG_DRIVER 3
35 #define ODBC_CONFIG_DRIVER_MAX 100
38 #define ODBC_ERROR_GENERAL_ERR 1
39 #define ODBC_ERROR_INVALID_BUFF_LEN 2
40 #define ODBC_ERROR_INVALID_HWND 3
41 #define ODBC_ERROR_INVALID_STR 4
42 #define ODBC_ERROR_INVALID_REQUEST_TYPE 5
43 #define ODBC_ERROR_COMPONENT_NOT_FOUND 6
44 #define ODBC_ERROR_INVALID_NAME 7
45 #define ODBC_ERROR_INVALID_KEYWORD_VALUE 8
46 #define ODBC_ERROR_INVALID_DSN 9
47 #define ODBC_ERROR_INVALID_INF 10
48 #define ODBC_ERROR_REQUEST_FAILED 11
49 #define ODBC_ERROR_INVALID_PATH 12
50 #define ODBC_ERROR_LOAD_LIB_FAILED 13
51 #define ODBC_ERROR_INVALID_PARAM_SEQUENCE 14
52 #define ODBC_ERROR_INVALID_LOG_FILE 15
53 #define ODBC_ERROR_USER_CANCELED 16
54 #define ODBC_ERROR_USAGE_UPDATE_FAILED 17
55 #define ODBC_ERROR_CREATE_DSN_FAILED 18
56 #define ODBC_ERROR_WRITING_SYSINFO_FAILED 19
57 #define ODBC_ERROR_REMOVE_DSN_FAILED 20
58 #define ODBC_ERROR_OUT_OF_MEM 21
59 #define ODBC_ERROR_OUTPUT_STRING_TRUNCATED 22
62 BOOL WINAPI ODBCCPlApplet(LONG,LONG,LONG*,LONG*);
63 BOOL WINAPI SQLConfigDataSource(HWND,WORD,LPCSTR,LPCSTR);
64 BOOL WINAPI SQLConfigDataSourceW(HWND,WORD,LPCWSTR,LPCWSTR);
65 BOOL WINAPI SQLConfigDriver(HWND,WORD,LPCSTR,LPCSTR,LPSTR,WORD,WORD*);
66 BOOL WINAPI SQLConfigDriverW(HWND,WORD,LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*);
67 BOOL WINAPI SQLCreateDataSource(HWND,LPCSTR);
68 BOOL WINAPI SQLCreateDataSourceW(HWND,LPCWSTR);
69 BOOL WINAPI SQLGetAvailableDrivers(LPCSTR,LPSTR,WORD,WORD*);
70 BOOL WINAPI SQLGetAvailableDriversW(LPCWSTR,LPWSTR,WORD,WORD*);
71 BOOL WINAPI SQLGetConfigMode(UWORD*);
72 BOOL WINAPI SQLGetInstalledDrivers(LPSTR,WORD,WORD*);
73 BOOL WINAPI SQLGetInstalledDriversW(LPWSTR,WORD,WORD*);
74 int WINAPI SQLGetPrivateProfileString(LPCSTR,LPCSTR,LPCSTR,LPCSTR,int,LPCSTR);
75 int WINAPI SQLGetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,int,LPCWSTR);
76 BOOL WINAPI SQLGetTranslator(HWND,LPSTR,WORD,WORD*,LPSTR,WORD,WORD*,DWORD*);
77 BOOL WINAPI SQLGetTranslatorW(HWND,LPWSTR,WORD,WORD*,LPWSTR,WORD,WORD*,DWORD*);
78 BOOL WINAPI SQLInstallDriver(LPCSTR,LPCSTR,LPSTR,WORD,WORD*);
79 BOOL WINAPI SQLInstallDriverW(LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*);
80 BOOL WINAPI SQLInstallDriverEx(LPCSTR,LPCSTR,LPSTR,WORD,WORD*,WORD,LPDWORD);
81 BOOL WINAPI SQLInstallDriverExW(LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*,WORD,LPDWORD);
82 BOOL WINAPI SQLInstallDriverManager(LPSTR,WORD,WORD*);
83 BOOL WINAPI SQLInstallDriverManagerW(LPWSTR,WORD,WORD*);
84 SQLRETURN WINAPI SQLInstallerError(WORD,DWORD*,LPSTR,WORD,WORD*);
85 SQLRETURN WINAPI SQLInstallerErrorW(WORD,DWORD*,LPWSTR,WORD,WORD*);
86 BOOL WINAPI SQLInstallODBC(HWND,LPCSTR,LPCSTR,LPCSTR);
87 BOOL WINAPI SQLInstallODBCW(HWND,LPCWSTR,LPCWSTR,LPCWSTR);
88 BOOL WINAPI SQLInstallTranslatorEx(LPCSTR,LPCSTR,LPSTR,WORD,WORD*,WORD,LPDWORD);
89 BOOL WINAPI SQLInstallTranslatorExW(LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*,WORD,LPDWORD);
90 BOOL WINAPI SQLInstallTranslator(LPCSTR,LPCSTR,LPCSTR,LPSTR,WORD,WORD*,WORD,LPDWORD);
91 BOOL WINAPI SQLInstallTranslatorW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*,WORD,LPDWORD);
92 BOOL WINAPI SQLManageDataSources(HWND hwnd);
93 SQLRETURN WINAPI SQLPostInstallerError(DWORD,LPCSTR);
94 SQLRETURN WINAPI SQLPostInstallerErrorW(DWORD,LPCWSTR);
95 BOOL WINAPI SQLReadFileDSN(LPCSTR,LPCSTR,LPCSTR,LPSTR,WORD,WORD*);
96 BOOL WINAPI SQLReadFileDSNW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*);
97 BOOL WINAPI SQLRemoveDefaultDataSource(void);
98 BOOL WINAPI SQLRemoveDriver(LPCSTR,BOOL,LPDWORD);
99 BOOL WINAPI SQLRemoveDriverW(LPCWSTR,BOOL,LPDWORD);
100 BOOL WINAPI SQLRemoveDriverManager(LPDWORD);
101 BOOL WINAPI SQLRemoveDSNFromIni(LPCSTR);
102 BOOL WINAPI SQLRemoveDSNFromIniW(LPCWSTR);
103 BOOL WINAPI SQLRemoveTranslator(LPCSTR,LPDWORD);
104 BOOL WINAPI SQLRemoveTranslatorW(LPCWSTR,LPDWORD);
105 BOOL WINAPI SQLSetConfigMode(UWORD);
106 BOOL WINAPI SQLValidDSN(LPCSTR);
107 BOOL WINAPI SQLValidDSNW(LPCWSTR);
108 BOOL WINAPI SQLWriteDSNToIni(LPCSTR,LPCSTR);
109 BOOL WINAPI SQLWriteDSNToIniW(LPCWSTR,LPCWSTR);
110 BOOL WINAPI SQLWriteFileDSN(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
111 BOOL WINAPI SQLWriteFileDSNW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
112 BOOL WINAPI SQLWritePrivateProfileString(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
113 BOOL WINAPI SQLWritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
119 #endif /*__WINE_ODBCINST_H*/