VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/odbcinst.h@ 33252

Last change on this file since 33252 was 16477, checked in by vboxsync, 16 years ago

LGPL disclaimer by filemuncher

  • Property svn:eol-style set to native
File size: 5.9 KB
Line 
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
32extern "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
84BOOL WINAPI ODBCCPlApplet(LONG,LONG,LONG*,LONG*);
85BOOL WINAPI SQLConfigDataSource(HWND,WORD,LPCSTR,LPCSTR);
86BOOL WINAPI SQLConfigDataSourceW(HWND,WORD,LPCWSTR,LPCWSTR);
87BOOL WINAPI SQLConfigDriver(HWND,WORD,LPCSTR,LPCSTR,LPSTR,WORD,WORD*);
88BOOL WINAPI SQLConfigDriverW(HWND,WORD,LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*);
89BOOL WINAPI SQLCreateDataSource(HWND,LPCSTR);
90BOOL WINAPI SQLCreateDataSourceW(HWND,LPCWSTR);
91BOOL WINAPI SQLGetAvailableDrivers(LPCSTR,LPSTR,WORD,WORD*);
92BOOL WINAPI SQLGetAvailableDriversW(LPCWSTR,LPWSTR,WORD,WORD*);
93BOOL WINAPI SQLGetConfigMode(UWORD*);
94BOOL WINAPI SQLGetInstalledDrivers(LPSTR,WORD,WORD*);
95BOOL WINAPI SQLGetInstalledDriversW(LPWSTR,WORD,WORD*);
96int WINAPI SQLGetPrivateProfileString(LPCSTR,LPCSTR,LPCSTR,LPCSTR,int,LPCSTR);
97int WINAPI SQLGetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,int,LPCWSTR);
98BOOL WINAPI SQLGetTranslator(HWND,LPSTR,WORD,WORD*,LPSTR,WORD,WORD*,DWORD*);
99BOOL WINAPI SQLGetTranslatorW(HWND,LPWSTR,WORD,WORD*,LPWSTR,WORD,WORD*,DWORD*);
100BOOL WINAPI SQLInstallDriver(LPCSTR,LPCSTR,LPSTR,WORD,WORD*);
101BOOL WINAPI SQLInstallDriverW(LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*);
102BOOL WINAPI SQLInstallDriverEx(LPCSTR,LPCSTR,LPSTR,WORD,WORD*,WORD,LPDWORD);
103BOOL WINAPI SQLInstallDriverExW(LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*,WORD,LPDWORD);
104BOOL WINAPI SQLInstallDriverManager(LPSTR,WORD,WORD*);
105BOOL WINAPI SQLInstallDriverManagerW(LPWSTR,WORD,WORD*);
106SQLRETURN WINAPI SQLInstallerError(WORD,DWORD*,LPSTR,WORD,WORD*);
107SQLRETURN WINAPI SQLInstallerErrorW(WORD,DWORD*,LPWSTR,WORD,WORD*);
108BOOL WINAPI SQLInstallODBC(HWND,LPCSTR,LPCSTR,LPCSTR);
109BOOL WINAPI SQLInstallODBCW(HWND,LPCWSTR,LPCWSTR,LPCWSTR);
110BOOL WINAPI SQLInstallTranslatorEx(LPCSTR,LPCSTR,LPSTR,WORD,WORD*,WORD,LPDWORD);
111BOOL WINAPI SQLInstallTranslatorExW(LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*,WORD,LPDWORD);
112BOOL WINAPI SQLInstallTranslator(LPCSTR,LPCSTR,LPCSTR,LPSTR,WORD,WORD*,WORD,LPDWORD);
113BOOL WINAPI SQLInstallTranslatorW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*,WORD,LPDWORD);
114BOOL WINAPI SQLManageDataSources(HWND hwnd);
115SQLRETURN WINAPI SQLPostInstallerError(DWORD,LPCSTR);
116SQLRETURN WINAPI SQLPostInstallerErrorW(DWORD,LPCWSTR);
117BOOL WINAPI SQLReadFileDSN(LPCSTR,LPCSTR,LPCSTR,LPSTR,WORD,WORD*);
118BOOL WINAPI SQLReadFileDSNW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,WORD,WORD*);
119BOOL WINAPI SQLRemoveDefaultDataSource(void);
120BOOL WINAPI SQLRemoveDriver(LPCSTR,BOOL,LPDWORD);
121BOOL WINAPI SQLRemoveDriverW(LPCWSTR,BOOL,LPDWORD);
122BOOL WINAPI SQLRemoveDriverManager(LPDWORD);
123BOOL WINAPI SQLRemoveDSNFromIni(LPCSTR);
124BOOL WINAPI SQLRemoveDSNFromIniW(LPCWSTR);
125BOOL WINAPI SQLRemoveTranslator(LPCSTR,LPDWORD);
126BOOL WINAPI SQLRemoveTranslatorW(LPCWSTR,LPDWORD);
127BOOL WINAPI SQLSetConfigMode(UWORD);
128BOOL WINAPI SQLValidDSN(LPCSTR);
129BOOL WINAPI SQLValidDSNW(LPCWSTR);
130BOOL WINAPI SQLWriteDSNToIni(LPCSTR,LPCSTR);
131BOOL WINAPI SQLWriteDSNToIniW(LPCWSTR,LPCWSTR);
132BOOL WINAPI SQLWriteFileDSN(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
133BOOL WINAPI SQLWriteFileDSNW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
134BOOL WINAPI SQLWritePrivateProfileString(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
135BOOL WINAPI SQLWritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
136
137#ifdef __cplusplus
138}
139#endif
140
141#endif /*__WINE_ODBCINST_H*/
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette