msdaps: Add a stub rowset proxy object.
[wine/hramrach.git] / include / odbcinst.h
bloba1109d5fcb6087247a20e16a289407594307f37d
1 /*
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
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
26 #include <sql.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 #define ODBC_ADD_DSN 1
38 #define ODBC_CONFIG_DSN 2
39 #define ODBC_REMOVE_DSN 3
40 #define ODBC_ADD_SYS_DSN 4
41 #define ODBC_CONFIG_SYS_DSN 5
42 #define ODBC_REMOVE_SYS_DSN 6
43 #define ODBC_REMOVE_DEFAULT_DSN 7
45 /* Mode values for SQLSetConfigMode/SQLGetConfigMode */
46 #define ODBC_BOTH_DSN 0
47 #define ODBC_USER_DSN 1
48 #define ODBC_SYSTEM_DSN 2
50 /* error values */
51 #define ODBC_ERROR_GENERAL_ERR 1
52 #define ODBC_ERROR_INVALID_BUFF_LEN 2
53 #define ODBC_ERROR_INVALID_HWND 3
54 #define ODBC_ERROR_INVALID_STR 4
55 #define ODBC_ERROR_INVALID_REQUEST_TYPE 5
56 #define ODBC_ERROR_COMPONENT_NOT_FOUND 6
57 #define ODBC_ERROR_INVALID_NAME 7
58 #define ODBC_ERROR_INVALID_KEYWORD_VALUE 8
59 #define ODBC_ERROR_INVALID_DSN 9
60 #define ODBC_ERROR_INVALID_INF 10
61 #define ODBC_ERROR_REQUEST_FAILED 11
62 #define ODBC_ERROR_INVALID_PATH 12
63 #define ODBC_ERROR_LOAD_LIB_FAILED 13
64 #define ODBC_ERROR_INVALID_PARAM_SEQUENCE 14
65 #define ODBC_ERROR_INVALID_LOG_FILE 15
66 #define ODBC_ERROR_USER_CANCELED 16
67 #define ODBC_ERROR_USAGE_UPDATE_FAILED 17
68 #define ODBC_ERROR_CREATE_DSN_FAILED 18
69 #define ODBC_ERROR_WRITING_SYSINFO_FAILED 19
70 #define ODBC_ERROR_REMOVE_DSN_FAILED 20
71 #define ODBC_ERROR_OUT_OF_MEM 21
72 #define ODBC_ERROR_OUTPUT_STRING_TRUNCATED 22
75 BOOL WINAPI ODBCCPlApplet(LONG,LONG,LONG*,LONG*);
76 BOOL WINAPI SQLConfigDataSource(HWND,WORD,LPCSTR,LPCSTR);
77 BOOL WINAPI SQLConfigDataSourceW(HWND,WORD,LPCWSTR,LPCWSTR);
78 BOOL WINAPI SQLConfigDriver(HWND,WORD,LPCSTR,LPCSTR,LPSTR,WORD,WORD*);
79 BOOL WINAPI SQLConfigDriverW(HWND,WORD,LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*);
80 BOOL WINAPI SQLCreateDataSource(HWND,LPCSTR);
81 BOOL WINAPI SQLCreateDataSourceW(HWND,LPCWSTR);
82 BOOL WINAPI SQLGetAvailableDrivers(LPCSTR,LPSTR,WORD,WORD*);
83 BOOL WINAPI SQLGetAvailableDriversW(LPCWSTR,LPWSTR,WORD,WORD*);
84 BOOL WINAPI SQLGetConfigMode(UWORD*);
85 BOOL WINAPI SQLGetInstalledDrivers(LPSTR,WORD,WORD*);
86 BOOL WINAPI SQLGetInstalledDriversW(LPWSTR,WORD,WORD*);
87 int WINAPI SQLGetPrivateProfileString(LPCSTR,LPCSTR,LPCSTR,LPCSTR,int,LPCSTR);
88 int WINAPI SQLGetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,int,LPCWSTR);
89 BOOL WINAPI SQLGetTranslator(HWND,LPSTR,WORD,WORD*,LPSTR,WORD,WORD*,DWORD*);
90 BOOL WINAPI SQLGetTranslatorW(HWND,LPWSTR,WORD,WORD*,LPWSTR,WORD,WORD*,DWORD*);
91 BOOL WINAPI SQLInstallDriver(LPCSTR,LPCSTR,LPSTR,WORD,WORD*);
92 BOOL WINAPI SQLInstallDriverW(LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*);
93 BOOL WINAPI SQLInstallDriverEx(LPCSTR,LPCSTR,LPSTR,WORD,WORD*,WORD,LPDWORD);
94 BOOL WINAPI SQLInstallDriverExW(LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*,WORD,LPDWORD);
95 BOOL WINAPI SQLInstallDriverManager(LPSTR,WORD,WORD*);
96 BOOL WINAPI SQLInstallDriverManagerW(LPWSTR,WORD,WORD*);
97 SQLRETURN WINAPI SQLInstallerError(WORD,DWORD*,LPSTR,WORD,WORD*);
98 SQLRETURN WINAPI SQLInstallerErrorW(WORD,DWORD*,LPWSTR,WORD,WORD*);
99 BOOL WINAPI SQLInstallODBC(HWND,LPCSTR,LPCSTR,LPCSTR);
100 BOOL WINAPI SQLInstallODBCW(HWND,LPCWSTR,LPCWSTR,LPCWSTR);
101 BOOL WINAPI SQLInstallTranslatorEx(LPCSTR,LPCSTR,LPSTR,WORD,WORD*,WORD,LPDWORD);
102 BOOL WINAPI SQLInstallTranslatorExW(LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*,WORD,LPDWORD);
103 BOOL WINAPI SQLInstallTranslator(LPCSTR,LPCSTR,LPCSTR,LPSTR,WORD,WORD*,WORD,LPDWORD);
104 BOOL WINAPI SQLInstallTranslatorW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*,WORD,LPDWORD);
105 BOOL WINAPI SQLManageDataSources(HWND hwnd);
106 SQLRETURN WINAPI SQLPostInstallerError(DWORD,LPCSTR);
107 SQLRETURN WINAPI SQLPostInstallerErrorW(DWORD,LPCWSTR);
108 BOOL WINAPI SQLReadFileDSN(LPCSTR,LPCSTR,LPCSTR,LPSTR,WORD,WORD*);
109 BOOL WINAPI SQLReadFileDSNW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*);
110 BOOL WINAPI SQLRemoveDefaultDataSource(void);
111 BOOL WINAPI SQLRemoveDriver(LPCSTR,BOOL,LPDWORD);
112 BOOL WINAPI SQLRemoveDriverW(LPCWSTR,BOOL,LPDWORD);
113 BOOL WINAPI SQLRemoveDriverManager(LPDWORD);
114 BOOL WINAPI SQLRemoveDSNFromIni(LPCSTR);
115 BOOL WINAPI SQLRemoveDSNFromIniW(LPCWSTR);
116 BOOL WINAPI SQLRemoveTranslator(LPCSTR,LPDWORD);
117 BOOL WINAPI SQLRemoveTranslatorW(LPCWSTR,LPDWORD);
118 BOOL WINAPI SQLSetConfigMode(UWORD);
119 BOOL WINAPI SQLValidDSN(LPCSTR);
120 BOOL WINAPI SQLValidDSNW(LPCWSTR);
121 BOOL WINAPI SQLWriteDSNToIni(LPCSTR,LPCSTR);
122 BOOL WINAPI SQLWriteDSNToIniW(LPCWSTR,LPCWSTR);
123 BOOL WINAPI SQLWriteFileDSN(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
124 BOOL WINAPI SQLWriteFileDSNW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
125 BOOL WINAPI SQLWritePrivateProfileString(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
126 BOOL WINAPI SQLWritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
128 #ifdef __cplusplus
130 #endif
132 #endif /*__WINE_ODBCINST_H*/