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
37 /* Mode values for SQLSetConfigMode/SQLGetConfigMode */
38 #define ODBC_BOTH_DSN 0
39 #define ODBC_USER_DSN 1
40 #define ODBC_SYSTEM_DSN 2
43 #define ODBC_ERROR_GENERAL_ERR 1
44 #define ODBC_ERROR_INVALID_BUFF_LEN 2
45 #define ODBC_ERROR_INVALID_HWND 3
46 #define ODBC_ERROR_INVALID_STR 4
47 #define ODBC_ERROR_INVALID_REQUEST_TYPE 5
48 #define ODBC_ERROR_COMPONENT_NOT_FOUND 6
49 #define ODBC_ERROR_INVALID_NAME 7
50 #define ODBC_ERROR_INVALID_KEYWORD_VALUE 8
51 #define ODBC_ERROR_INVALID_DSN 9
52 #define ODBC_ERROR_INVALID_INF 10
53 #define ODBC_ERROR_REQUEST_FAILED 11
54 #define ODBC_ERROR_INVALID_PATH 12
55 #define ODBC_ERROR_LOAD_LIB_FAILED 13
56 #define ODBC_ERROR_INVALID_PARAM_SEQUENCE 14
57 #define ODBC_ERROR_INVALID_LOG_FILE 15
58 #define ODBC_ERROR_USER_CANCELED 16
59 #define ODBC_ERROR_USAGE_UPDATE_FAILED 17
60 #define ODBC_ERROR_CREATE_DSN_FAILED 18
61 #define ODBC_ERROR_WRITING_SYSINFO_FAILED 19
62 #define ODBC_ERROR_REMOVE_DSN_FAILED 20
63 #define ODBC_ERROR_OUT_OF_MEM 21
64 #define ODBC_ERROR_OUTPUT_STRING_TRUNCATED 22
67 BOOL WINAPI
ODBCCPlApplet(LONG
,LONG
,LONG
*,LONG
*);
68 BOOL WINAPI
SQLConfigDataSource(HWND
,WORD
,LPCSTR
,LPCSTR
);
69 BOOL WINAPI
SQLConfigDataSourceW(HWND
,WORD
,LPCWSTR
,LPCWSTR
);
70 BOOL WINAPI
SQLConfigDriver(HWND
,WORD
,LPCSTR
,LPCSTR
,LPSTR
,WORD
,WORD
*);
71 BOOL WINAPI
SQLConfigDriverW(HWND
,WORD
,LPCWSTR
,LPCWSTR
,LPWSTR
,WORD
,WORD
*);
72 BOOL WINAPI
SQLCreateDataSource(HWND
,LPCSTR
);
73 BOOL WINAPI
SQLCreateDataSourceW(HWND
,LPCWSTR
);
74 BOOL WINAPI
SQLGetAvailableDrivers(LPCSTR
,LPSTR
,WORD
,WORD
*);
75 BOOL WINAPI
SQLGetAvailableDriversW(LPCWSTR
,LPWSTR
,WORD
,WORD
*);
76 BOOL WINAPI
SQLGetConfigMode(UWORD
*);
77 BOOL WINAPI
SQLGetInstalledDrivers(LPSTR
,WORD
,WORD
*);
78 BOOL WINAPI
SQLGetInstalledDriversW(LPWSTR
,WORD
,WORD
*);
79 int WINAPI
SQLGetPrivateProfileString(LPCSTR
,LPCSTR
,LPCSTR
,LPCSTR
,int,LPCSTR
);
80 int WINAPI
SQLGetPrivateProfileStringW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPCWSTR
,int,LPCWSTR
);
81 BOOL WINAPI
SQLGetTranslator(HWND
,LPSTR
,WORD
,WORD
*,LPSTR
,WORD
,WORD
*,DWORD
*);
82 BOOL WINAPI
SQLGetTranslatorW(HWND
,LPWSTR
,WORD
,WORD
*,LPWSTR
,WORD
,WORD
*,DWORD
*);
83 BOOL WINAPI
SQLInstallDriver(LPCSTR
,LPCSTR
,LPSTR
,WORD
,WORD
*);
84 BOOL WINAPI
SQLInstallDriverW(LPCWSTR
,LPCWSTR
,LPWSTR
,WORD
,WORD
*);
85 BOOL WINAPI
SQLInstallDriverEx(LPCSTR
,LPCSTR
,LPSTR
,WORD
,WORD
*,WORD
,LPDWORD
);
86 BOOL WINAPI
SQLInstallDriverExW(LPCWSTR
,LPCWSTR
,LPWSTR
,WORD
,WORD
*,WORD
,LPDWORD
);
87 BOOL WINAPI
SQLInstallDriverManager(LPSTR
,WORD
,WORD
*);
88 BOOL WINAPI
SQLInstallDriverManagerW(LPWSTR
,WORD
,WORD
*);
89 SQLRETURN WINAPI
SQLInstallerError(WORD
,DWORD
*,LPSTR
,WORD
,WORD
*);
90 SQLRETURN WINAPI
SQLInstallerErrorW(WORD
,DWORD
*,LPWSTR
,WORD
,WORD
*);
91 BOOL WINAPI
SQLInstallODBC(HWND
,LPCSTR
,LPCSTR
,LPCSTR
);
92 BOOL WINAPI
SQLInstallODBCW(HWND
,LPCWSTR
,LPCWSTR
,LPCWSTR
);
93 BOOL WINAPI
SQLInstallTranslatorEx(LPCSTR
,LPCSTR
,LPSTR
,WORD
,WORD
*,WORD
,LPDWORD
);
94 BOOL WINAPI
SQLInstallTranslatorExW(LPCWSTR
,LPCWSTR
,LPWSTR
,WORD
,WORD
*,WORD
,LPDWORD
);
95 BOOL WINAPI
SQLInstallTranslator(LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,WORD
,WORD
*,WORD
,LPDWORD
);
96 BOOL WINAPI
SQLInstallTranslatorW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPWSTR
,WORD
,WORD
*,WORD
,LPDWORD
);
97 BOOL WINAPI
SQLManageDataSources(HWND hwnd
);
98 SQLRETURN WINAPI
SQLPostInstallerError(DWORD
,LPCSTR
);
99 SQLRETURN WINAPI
SQLPostInstallerErrorW(DWORD
,LPCWSTR
);
100 BOOL WINAPI
SQLReadFileDSN(LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,WORD
,WORD
*);
101 BOOL WINAPI
SQLReadFileDSNW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPWSTR
,WORD
,WORD
*);
102 BOOL WINAPI
SQLRemoveDefaultDataSource(void);
103 BOOL WINAPI
SQLRemoveDriver(LPCSTR
,BOOL
,LPDWORD
);
104 BOOL WINAPI
SQLRemoveDriverW(LPCWSTR
,BOOL
,LPDWORD
);
105 BOOL WINAPI
SQLRemoveDriverManager(LPDWORD
);
106 BOOL WINAPI
SQLRemoveDSNFromIni(LPCSTR
);
107 BOOL WINAPI
SQLRemoveDSNFromIniW(LPCWSTR
);
108 BOOL WINAPI
SQLRemoveTranslator(LPCSTR
,LPDWORD
);
109 BOOL WINAPI
SQLRemoveTranslatorW(LPCWSTR
,LPDWORD
);
110 BOOL WINAPI
SQLSetConfigMode(UWORD
);
111 BOOL WINAPI
SQLValidDSN(LPCSTR
);
112 BOOL WINAPI
SQLValidDSNW(LPCWSTR
);
113 BOOL WINAPI
SQLWriteDSNToIni(LPCSTR
,LPCSTR
);
114 BOOL WINAPI
SQLWriteDSNToIniW(LPCWSTR
,LPCWSTR
);
115 BOOL WINAPI
SQLWriteFileDSN(LPCSTR
,LPCSTR
,LPCSTR
,LPCSTR
);
116 BOOL WINAPI
SQLWriteFileDSNW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPCWSTR
);
117 BOOL WINAPI
SQLWritePrivateProfileString(LPCSTR
,LPCSTR
,LPCSTR
,LPCSTR
);
118 BOOL WINAPI
SQLWritePrivateProfileStringW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPCWSTR
);
124 #endif /*__WINE_ODBCINST_H*/