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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __WINE_ODBCINST_H
20 #define __WINE_ODBCINST_H
28 BOOL WINAPI SQLConfigDataSource(HWND,WORD,LPCSTR,LPCSTR);
29 BOOL WINAPI SQLConfigDataSourceW(HWND,WORD,LPCWSTR,LPCWSTR);
30 BOOL WINAPI SQLConfigDriver(HWND,WORD,LPCSTR,LPCSTR,LPSTR,WORD,WORD*);
31 BOOL WINAPI SQLConfigDriverW(HWND,WORD,LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*);
32 BOOL WINAPI SQLCreateDataSource(HWND,LPSTR);
33 BOOL WINAPI SQLCreateDataSourceW(HWND,LPWSTR);
34 BOOL WINAPI SQLGetConfigMode(UWORD*);
35 BOOL WINAPI SQLGetInstalledDrivers(LPSTR,WORD,WORD*);
36 BOOL WINAPI SQLGetInstalledDriversW(LPWSTR,WORD,WORD*);
37 int WINAPI SQLGetPrivateProfileString(LPCSTR,LPCSTR,LPCSTR,LPCSTR,INT,LPCSTR);
38 int WINAPI SQLGetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,INT,LPCWSTR);
39 BOOL WINAPI SQLGetTranslator(HWND,LPSTR,WORD,WORD*,LPSTR,WORD,WORD*,DWORD*);
40 BOOL WINAPI SQLGetTranslatorW(HWND,LPWSTR,WORD,WORD*,LPWSTR,WORD,WORD*,DWORD*);
41 BOOL WINAPI SQLInstallDriverEx(LPCSTR,LPCSTR,LPSTR,WORD,WORD*,WORD,LPDWORD);
42 BOOL WINAPI SQLInstallDriverExW(LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*,WORD,LPDWORD);
43 BOOL WINAPI SQLInstallDriverManager(LPSTR,WORD,WORD*);
44 BOOL WINAPI SQLInstallDriverManagerW(LPWSTR,WORD,WORD*);
45 RETCODE WINAPI SQLInstallerError(WORD,DWORD*,LPSTR,WORD,WORD*);
46 RETCODE WINAPI SQLInstallerErrorW(WORD,DWORD*,LPWSTR,WORD,WORD*);
47 BOOL WINAPI SQLInstallTranslatorEx(LPCSTR,LPCSTR,LPSTR,WORD,WORD*,WORD,LPDWORD);
48 BOOL WINAPI SQLInstallTranslatorExW(LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*,WORD,LPDWORD);
49 BOOL WINAPI SQLInstallTranslator(LPCSTR,LPCSTR,LPCSTR,LPSTR,WORD,WORD*,WORD,LPDWORD);
50 BOOL WINAPI SQLInstallTranslatorW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*,WORD,LPDWORD);
51 BOOL WINAPI SQLManageDataSources(HWND hwnd);
52 RETCODE WINAPI SQLPostInstallerError(DWORD,LPSTR);
53 RETCODE WINAPI SQLPostInstallerErrorW(DWORD,LPWSTR);
54 BOOL WINAPI SQLReadFileDSN(LPCSTR,LPCSTR,LPCSTR,LPSTR,WORD,WORD*);
55 BOOL WINAPI SQLReadFileDSNW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*);
56 BOOL WINAPI SQLRemoveDefaultDataSource(void);
57 BOOL WINAPI SQLRemoveDriver(LPCSTR,BOOL,LPDWORD);
58 BOOL WINAPI SQLRemoveDriverW(LPCWSTR,BOOL,LPDWORD);
59 BOOL WINAPI SQLRemoveDriverManager(LPDWORD);
60 BOOL WINAPI SQLRemoveDSNFromIni(LPCSTR);
61 BOOL WINAPI SQLRemoveDSNFromIniW(LPCWSTR);
62 BOOL WINAPI SQLRemoveTranslator(LPCSTR,LPDWORD);
63 BOOL WINAPI SQLRemoveTranslatorW(LPCWSTR,LPDWORD);
64 BOOL WINAPI SQLSetConfigMode(UWORD);
65 BOOL WINAPI SQLValidDSN(LPCSTR);
66 BOOL WINAPI SQLValidDSNW(LPCWSTR);
67 BOOL WINAPI SQLWriteDSNToIni(LPCSTR,LPCSTR);
68 BOOL WINAPI SQLWriteDSNToIniW(LPCWSTR,LPCWSTR);
69 BOOL WINAPI SQLWriteFileDSN(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
70 BOOL WINAPI SQLWriteFileDSNW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
71 BOOL WINAPI SQLWritePrivateProfileString(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
72 BOOL WINAPI SQLWritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
78 #endif /*__WINE_ODBCINST_H*/