1 | /*
|
---|
2 | * Copyright (C) 2005 Mike McCormack
|
---|
3 | *
|
---|
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.
|
---|
8 | *
|
---|
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.
|
---|
13 | *
|
---|
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
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef __WINE_ODBCINST_H
|
---|
29 | #define __WINE_ODBCINST_H
|
---|
30 |
|
---|
31 | #ifdef __cplusplus
|
---|
32 | extern "C" {
|
---|
33 | #endif
|
---|
34 |
|
---|
35 | #include <sql.h>
|
---|
36 |
|
---|
37 | /* flags for Installer function requests */
|
---|
38 | #define ODBC_INSTALL_INQUIRY 1
|
---|
39 | #define ODBC_INSTALL_COMPLETE 2
|
---|
40 |
|
---|
41 | #define ODBC_INSTALL_DRIVER 1
|
---|
42 | #define ODBC_REMOVE_DRIVER 2
|
---|
43 | #define ODBC_CONFIG_DRIVER 3
|
---|
44 | #define ODBC_CONFIG_DRIVER_MAX 100
|
---|
45 |
|
---|
46 | #define ODBC_ADD_DSN 1
|
---|
47 | #define ODBC_CONFIG_DSN 2
|
---|
48 | #define ODBC_REMOVE_DSN 3
|
---|
49 | #define ODBC_ADD_SYS_DSN 4
|
---|
50 | #define ODBC_CONFIG_SYS_DSN 5
|
---|
51 | #define ODBC_REMOVE_SYS_DSN 6
|
---|
52 | #define ODBC_REMOVE_DEFAULT_DSN 7
|
---|
53 |
|
---|
54 | /* Mode values for SQLSetConfigMode/SQLGetConfigMode */
|
---|
55 | #define ODBC_BOTH_DSN 0
|
---|
56 | #define ODBC_USER_DSN 1
|
---|
57 | #define ODBC_SYSTEM_DSN 2
|
---|
58 |
|
---|
59 | /* error values */
|
---|
60 | #define ODBC_ERROR_GENERAL_ERR 1
|
---|
61 | #define ODBC_ERROR_INVALID_BUFF_LEN 2
|
---|
62 | #define ODBC_ERROR_INVALID_HWND 3
|
---|
63 | #define ODBC_ERROR_INVALID_STR 4
|
---|
64 | #define ODBC_ERROR_INVALID_REQUEST_TYPE 5
|
---|
65 | #define ODBC_ERROR_COMPONENT_NOT_FOUND 6
|
---|
66 | #define ODBC_ERROR_INVALID_NAME 7
|
---|
67 | #define ODBC_ERROR_INVALID_KEYWORD_VALUE 8
|
---|
68 | #define ODBC_ERROR_INVALID_DSN 9
|
---|
69 | #define ODBC_ERROR_INVALID_INF 10
|
---|
70 | #define ODBC_ERROR_REQUEST_FAILED 11
|
---|
71 | #define ODBC_ERROR_INVALID_PATH 12
|
---|
72 | #define ODBC_ERROR_LOAD_LIB_FAILED 13
|
---|
73 | #define ODBC_ERROR_INVALID_PARAM_SEQUENCE 14
|
---|
74 | #define ODBC_ERROR_INVALID_LOG_FILE 15
|
---|
75 | #define ODBC_ERROR_USER_CANCELED 16
|
---|
76 | #define ODBC_ERROR_USAGE_UPDATE_FAILED 17
|
---|
77 | #define ODBC_ERROR_CREATE_DSN_FAILED 18
|
---|
78 | #define ODBC_ERROR_WRITING_SYSINFO_FAILED 19
|
---|
79 | #define ODBC_ERROR_REMOVE_DSN_FAILED 20
|
---|
80 | #define ODBC_ERROR_OUT_OF_MEM 21
|
---|
81 | #define ODBC_ERROR_OUTPUT_STRING_TRUNCATED 22
|
---|
82 |
|
---|
83 |
|
---|
84 | BOOL WINAPI ODBCCPlApplet(LONG,LONG,LONG*,LONG*);
|
---|
85 | BOOL WINAPI SQLConfigDataSource(HWND,WORD,LPCSTR,LPCSTR);
|
---|
86 | BOOL WINAPI SQLConfigDataSourceW(HWND,WORD,LPCWSTR,LPCWSTR);
|
---|
87 | BOOL WINAPI SQLConfigDriver(HWND,WORD,LPCSTR,LPCSTR,LPSTR,WORD,WORD*);
|
---|
88 | BOOL WINAPI SQLConfigDriverW(HWND,WORD,LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*);
|
---|
89 | BOOL WINAPI SQLCreateDataSource(HWND,LPCSTR);
|
---|
90 | BOOL WINAPI SQLCreateDataSourceW(HWND,LPCWSTR);
|
---|
91 | BOOL WINAPI SQLGetAvailableDrivers(LPCSTR,LPSTR,WORD,WORD*);
|
---|
92 | BOOL WINAPI SQLGetAvailableDriversW(LPCWSTR,LPWSTR,WORD,WORD*);
|
---|
93 | BOOL WINAPI SQLGetConfigMode(UWORD*);
|
---|
94 | BOOL WINAPI SQLGetInstalledDrivers(LPSTR,WORD,WORD*);
|
---|
95 | BOOL WINAPI SQLGetInstalledDriversW(LPWSTR,WORD,WORD*);
|
---|
96 | int WINAPI SQLGetPrivateProfileString(LPCSTR,LPCSTR,LPCSTR,LPCSTR,int,LPCSTR);
|
---|
97 | int WINAPI SQLGetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,int,LPCWSTR);
|
---|
98 | BOOL WINAPI SQLGetTranslator(HWND,LPSTR,WORD,WORD*,LPSTR,WORD,WORD*,DWORD*);
|
---|
99 | BOOL WINAPI SQLGetTranslatorW(HWND,LPWSTR,WORD,WORD*,LPWSTR,WORD,WORD*,DWORD*);
|
---|
100 | BOOL WINAPI SQLInstallDriver(LPCSTR,LPCSTR,LPSTR,WORD,WORD*);
|
---|
101 | BOOL WINAPI SQLInstallDriverW(LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*);
|
---|
102 | BOOL WINAPI SQLInstallDriverEx(LPCSTR,LPCSTR,LPSTR,WORD,WORD*,WORD,LPDWORD);
|
---|
103 | BOOL WINAPI SQLInstallDriverExW(LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*,WORD,LPDWORD);
|
---|
104 | BOOL WINAPI SQLInstallDriverManager(LPSTR,WORD,WORD*);
|
---|
105 | BOOL WINAPI SQLInstallDriverManagerW(LPWSTR,WORD,WORD*);
|
---|
106 | SQLRETURN WINAPI SQLInstallerError(WORD,DWORD*,LPSTR,WORD,WORD*);
|
---|
107 | SQLRETURN WINAPI SQLInstallerErrorW(WORD,DWORD*,LPWSTR,WORD,WORD*);
|
---|
108 | BOOL WINAPI SQLInstallODBC(HWND,LPCSTR,LPCSTR,LPCSTR);
|
---|
109 | BOOL WINAPI SQLInstallODBCW(HWND,LPCWSTR,LPCWSTR,LPCWSTR);
|
---|
110 | BOOL WINAPI SQLInstallTranslatorEx(LPCSTR,LPCSTR,LPSTR,WORD,WORD*,WORD,LPDWORD);
|
---|
111 | BOOL WINAPI SQLInstallTranslatorExW(LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*,WORD,LPDWORD);
|
---|
112 | BOOL WINAPI SQLInstallTranslator(LPCSTR,LPCSTR,LPCSTR,LPSTR,WORD,WORD*,WORD,LPDWORD);
|
---|
113 | BOOL WINAPI SQLInstallTranslatorW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*,WORD,LPDWORD);
|
---|
114 | BOOL WINAPI SQLManageDataSources(HWND hwnd);
|
---|
115 | SQLRETURN WINAPI SQLPostInstallerError(DWORD,LPCSTR);
|
---|
116 | SQLRETURN WINAPI SQLPostInstallerErrorW(DWORD,LPCWSTR);
|
---|
117 | BOOL WINAPI SQLReadFileDSN(LPCSTR,LPCSTR,LPCSTR,LPSTR,WORD,WORD*);
|
---|
118 | BOOL WINAPI SQLReadFileDSNW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*);
|
---|
119 | BOOL WINAPI SQLRemoveDefaultDataSource(void);
|
---|
120 | BOOL WINAPI SQLRemoveDriver(LPCSTR,BOOL,LPDWORD);
|
---|
121 | BOOL WINAPI SQLRemoveDriverW(LPCWSTR,BOOL,LPDWORD);
|
---|
122 | BOOL WINAPI SQLRemoveDriverManager(LPDWORD);
|
---|
123 | BOOL WINAPI SQLRemoveDSNFromIni(LPCSTR);
|
---|
124 | BOOL WINAPI SQLRemoveDSNFromIniW(LPCWSTR);
|
---|
125 | BOOL WINAPI SQLRemoveTranslator(LPCSTR,LPDWORD);
|
---|
126 | BOOL WINAPI SQLRemoveTranslatorW(LPCWSTR,LPDWORD);
|
---|
127 | BOOL WINAPI SQLSetConfigMode(UWORD);
|
---|
128 | BOOL WINAPI SQLValidDSN(LPCSTR);
|
---|
129 | BOOL WINAPI SQLValidDSNW(LPCWSTR);
|
---|
130 | BOOL WINAPI SQLWriteDSNToIni(LPCSTR,LPCSTR);
|
---|
131 | BOOL WINAPI SQLWriteDSNToIniW(LPCWSTR,LPCWSTR);
|
---|
132 | BOOL WINAPI SQLWriteFileDSN(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
|
---|
133 | BOOL WINAPI SQLWriteFileDSNW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
|
---|
134 | BOOL WINAPI SQLWritePrivateProfileString(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
|
---|
135 | BOOL WINAPI SQLWritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
|
---|
136 |
|
---|
137 | #ifdef __cplusplus
|
---|
138 | }
|
---|
139 | #endif
|
---|
140 |
|
---|
141 | #endif /*__WINE_ODBCINST_H*/
|
---|