ReactOS  0.4.15-dev-2704-gd5265b0
odbcinst.h
Go to the documentation of this file.
1 #ifndef _ODBCINST_H
2 #define _ODBCINST_H
3 
4 #include <sql.h>
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8 #ifndef ODBCVER
9 #define ODBCVER 0x0351
10 #endif
11 #define INSTAPI __stdcall
12 #define ODBC_ADD_DSN 1
13 #define ODBC_CONFIG_DSN 2
14 #define ODBC_REMOVE_DSN 3
15 #if (ODBCVER >= 0x0250)
16 #define ODBC_ADD_SYS_DSN 4
17 #define ODBC_CONFIG_SYS_DSN 5
18 #define ODBC_REMOVE_SYS_DSN 6
19 #define ODBC_INSTALL_INQUIRY 1
20 #define ODBC_INSTALL_COMPLETE 2
21 #define ODBC_INSTALL_DRIVER 1
22 #define ODBC_REMOVE_DRIVER 2
23 #define ODBC_CONFIG_DRIVER 3
24 #define ODBC_CONFIG_DRIVER_MAX 100
25 #endif /* (ODBCVER >= 0x0250) */
26 #if (ODBCVER >= 0x0300)
27 #define ODBC_REMOVE_DEFAULT_DSN 7
28 #define ODBC_BOTH_DSN 0
29 #define ODBC_USER_DSN 1
30 #define ODBC_SYSTEM_DSN 2
31 #define ODBC_ERROR_GENERAL_ERR 1
32 #define ODBC_ERROR_INVALID_BUFF_LEN 2
33 #define ODBC_ERROR_INVALID_HWND 3
34 #define ODBC_ERROR_INVALID_STR 4
35 #define ODBC_ERROR_INVALID_REQUEST_TYPE 5
36 #define ODBC_ERROR_COMPONENT_NOT_FOUND 6
37 #define ODBC_ERROR_INVALID_NAME 7
38 #define ODBC_ERROR_INVALID_KEYWORD_VALUE 8
39 #define ODBC_ERROR_INVALID_DSN 9
40 #define ODBC_ERROR_INVALID_INF 10
41 #define ODBC_ERROR_REQUEST_FAILED 11
42 #define ODBC_ERROR_INVALID_PATH 12
43 #define ODBC_ERROR_LOAD_LIB_FAILED 13
44 #define ODBC_ERROR_INVALID_PARAM_SEQUENCE 14
45 #define ODBC_ERROR_INVALID_LOG_FILE 15
46 #define ODBC_ERROR_USER_CANCELED 16
47 #define ODBC_ERROR_USAGE_UPDATE_FAILED 17
48 #define ODBC_ERROR_CREATE_DSN_FAILED 18
49 #define ODBC_ERROR_WRITING_SYSINFO_FAILED 19
50 #define ODBC_ERROR_REMOVE_DSN_FAILED 20
51 #define ODBC_ERROR_OUT_OF_MEM 21
52 #define ODBC_ERROR_OUTPUT_STRING_TRUNCATED 22
53 #endif /* ODBCVER >= 0x0300 */
54 
55 #ifndef RC_INVOKED
87 #if(ODBCVER >= 0x0250)
99 #endif /* ODBCVER >= 0x0250 */
100 #if (ODBCVER >= 0x0300)
115 #endif /* ODBCVER >= 0x0300 */
116 
117 #if defined (UNICODE) && !defined (SQL_NOUNICODEMAP)
118 #define SQLConfigDataSource SQLConfigDataSourceW
119 #define SQLConfigDriver SQLConfigDriverW
120 #define SQLCreateDataSource SQLCreateDataSourceW
121 #define SQLGetAvailableDrivers SQLGetAvailableDriversW
122 #define SQLGetInstalledDrivers SQLGetInstalledDriversW
123 #define SQLGetPrivateProfileString SQLGetPrivateProfileStringW
124 #define SQLGetTranslator SQLGetTranslatorW
125 #define SQLInstallDriver SQLInstallDriverW
126 #define SQLInstallDriverEx SQLInstallDriverExW
127 #define SQLInstallDriverManager SQLInstallDriverManagerW
128 #define SQLInstallerError SQLInstallerErrorW
129 #define SQLInstallODBC SQLInstallODBCW
130 #define SQLInstallTranslator SQLInstallTranslatorW
131 #define SQLInstallTranslatorEx SQLInstallTranslatorExW
132 #define SQLPostInstallerError SQLPostInstallerErrorW
133 #define SQLReadFileDSN SQLReadFileDSNW
134 #define SQLRemoveDriver SQLRemoveDriverW
135 #define SQLRemoveDSNFromIni SQLRemoveDSNFromIniW
136 #define SQLRemoveTranslator SQLRemoveTranslatorW
137 #define SQLValidDSN SQLValidDSNW
138 #define SQLWriteDSNToIni SQLWriteDSNToIniW
139 #define SQLWriteFileDSN SQLWriteFileDSNW
140 #define SQLWritePrivateProfileString SQLWritePrivateProfileStringW
141 #endif /* UNICODE && !SQL_NOUNICODEMAP */
142 #endif /* RC_INVOKED */
143 #ifdef __cplusplus
144 }
145 #endif
146 #endif /* _ODBCINST_H */
BOOL INSTAPI SQLGetAvailableDrivers(LPCSTR, LPSTR, WORD, WORD *)
Definition: odbccp32.c:476
BOOL INSTAPI SQLGetTranslator(HWND, LPSTR, WORD, WORD *, LPSTR, WORD, WORD *, DWORD *)
Definition: odbccp32.c:779
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
BOOL INSTAPI SQLRemoveTranslatorW(LPCWSTR, LPDWORD)
BOOL INSTAPI SQLInstallDriverW(LPCWSTR, LPCWSTR, LPWSTR, WORD, WORD *)
Definition: odbccp32.c:790
BOOL INSTAPI SQLRemoveDriver(LPCSTR, BOOL, LPDWORD)
Definition: odbccp32.c:1380
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
BOOL INSTAPI SQLWriteFileDSN(LPCSTR, LPCSTR, LPCSTR, LPCSTR)
Definition: odbccp32.c:1570
SQLRETURN INSTAPI SQLInstallerErrorW(WORD, DWORD *, LPWSTR, WORD, WORD *)
Definition: odbccp32.c:1079
SQLRETURN INSTAPI SQLInstallerError(WORD, DWORD *, LPSTR, WORD, WORD *)
Definition: odbccp32.c:1138
BOOL INSTAPI SQLInstallDriverExW(LPCWSTR, LPCWSTR, LPWSTR, WORD, WORD *, WORD, LPDWORD)
Definition: odbccp32.c:928
char * LPSTR
Definition: xmlstorage.h:182
BOOL INSTAPI SQLInstallODBCW(HWND, LPCWSTR, LPCWSTR, LPCWSTR)
Definition: odbccp32.c:1059
BOOL INSTAPI SQLInstallODBC(HWND, LPCSTR, LPCSTR, LPCSTR)
Definition: odbccp32.c:1069
BOOL INSTAPI SQLRemoveDSNFromIni(LPCSTR)
Definition: odbccp32.c:1413
BOOL INSTAPI SQLGetTranslatorW(HWND, LPWSTR, WORD, WORD *, LPWSTR, WORD, WORD *, DWORD *)
Definition: odbccp32.c:768
BOOL INSTAPI SQLRemoveDriverW(LPCWSTR, BOOL, LPDWORD)
Definition: odbccp32.c:1325
BOOL INSTAPI ConfigDSNW(HWND, WORD, LPCWSTR, LPCWSTR)
BOOL INSTAPI SQLConfigDataSource(HWND, WORD, LPCSTR, LPCSTR)
Definition: odbccp32.c:240
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOL INSTAPI SQLWritePrivateProfileString(LPCSTR, LPCSTR, LPCSTR, LPCSTR)
Definition: odbccp32.c:1623
BOOL INSTAPI SQLInstallDriver(LPCSTR, LPCSTR, LPSTR, WORD, WORD *)
Definition: odbccp32.c:806
BOOL INSTAPI SQLInstallTranslatorW(LPCWSTR, LPCWSTR, LPCWSTR, LPWSTR, WORD, WORD *, WORD, LPDWORD)
Definition: odbccp32.c:1257
SQLRETURN INSTAPI SQLPostInstallerError(DWORD, LPCSTR)
Definition: odbccp32.c:1288
BOOL INSTAPI SQLInstallDriverEx(LPCSTR, LPCSTR, LPSTR, WORD, WORD *, WORD, LPDWORD)
Definition: odbccp32.c:955
int INSTAPI SQLGetPrivateProfileStringW(LPCWSTR, LPCWSTR, LPCWSTR, LPWSTR, int, LPCWSTR)
Definition: odbccp32.c:615
BOOL INSTAPI SQLConfigDriver(HWND, WORD, LPCSTR, LPCSTR, LPSTR, WORD, WORD *)
Definition: odbccp32.c:397
const char * LPCSTR
Definition: xmlstorage.h:183
BOOL INSTAPI SQLGetInstalledDriversW(LPWSTR, WORD, WORD *)
SQLRETURN INSTAPI SQLPostInstallerErrorW(DWORD, LPCWSTR)
Definition: odbccp32.c:1281
BOOL INSTAPI SQLConfigDriverW(HWND, WORD, LPCWSTR, LPCWSTR, LPWSTR, WORD, WORD *)
Definition: odbccp32.c:365
BOOL INSTAPI SQLWriteDSNToIni(LPCSTR, LPCSTR)
Definition: odbccp32.c:1553
int INSTAPI SQLGetPrivateProfileString(LPCSTR, LPCSTR, LPCSTR, LPSTR, int, LPCSTR)
Definition: odbccp32.c:687
BOOL INSTAPI SQLReadFileDSNW(LPCWSTR, LPCWSTR, LPCWSTR, LPWSTR, WORD, WORD *)
Definition: odbccp32.c:1295
BOOL INSTAPI SQLGetAvailableDriversW(LPCWSTR, LPWSTR, WORD, WORD *)
Definition: odbccp32.c:467
BOOL INSTAPI SQLRemoveTranslator(LPCSTR, LPDWORD)
Definition: odbccp32.c:1486
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL INSTAPI ConfigDriverW(HWND, WORD, LPCWSTR, LPCWSTR, LPWSTR, WORD, WORD *)
BOOL INSTAPI SQLSetConfigMode(UWORD)
Definition: odbccp32.c:1501
BOOL INSTAPI SQLWriteFileDSNW(LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR)
Definition: odbccp32.c:1560
BOOL INSTAPI SQLInstallDriverManagerW(LPWSTR, WORD, WORD *)
Definition: odbccp32.c:999
BOOL INSTAPI ConfigDriver(HWND, WORD, LPCSTR, LPCSTR, LPSTR, WORD, WORD *)
BOOL INSTAPI SQLReadFileDSN(LPCSTR, LPCSTR, LPCSTR, LPSTR, WORD, WORD *)
Definition: odbccp32.c:1306
BOOL INSTAPI SQLConfigDataSourceW(HWND, WORD, LPCWSTR, LPCWSTR)
Definition: odbccp32.c:225
BOOL INSTAPI SQLCreateDataSourceW(HWND, LPCWSTR)
Definition: odbccp32.c:451
BOOL INSTAPI ConfigTranslator(HWND, DWORD *)
BOOL INSTAPI SQLRemoveDefaultDataSource(void)
Definition: odbccp32.c:1317
BOOL INSTAPI SQLInstallTranslator(LPCSTR, LPCSTR, LPCSTR, LPSTR, WORD, WORD *, WORD, LPDWORD)
Definition: odbccp32.c:1241
BOOL INSTAPI SQLRemoveDSNFromIniW(LPCWSTR)
Definition: odbccp32.c:1405
BOOL INSTAPI SQLGetInstalledDrivers(LPSTR, WORD, WORD *)
BOOL INSTAPI ConfigDSN(HWND, WORD, LPCSTR, LPCSTR)
BOOL INSTAPI SQLInstallTranslatorEx(LPCSTR, LPCSTR, LPSTR, WORD, WORD *, WORD, LPDWORD)
Definition: odbccp32.c:1193
BOOL INSTAPI SQLGetConfigMode(UWORD *)
Definition: odbccp32.c:485
uint32_t * LPDWORD
Definition: typedefs.h:59
BOOL INSTAPI SQLCreateDataSource(HWND, LPCSTR)
Definition: odbccp32.c:459
BOOL INSTAPI SQLRemoveDriverManager(LPDWORD)
Definition: odbccp32.c:1397
#define INSTAPI
Definition: odbcinst.h:11
BOOL INSTAPI SQLValidDSNW(LPCWSTR)
Definition: odbccp32.c:1518
unsigned short UWORD
Definition: lzx.c:49
BOOL INSTAPI SQLWritePrivateProfileStringW(LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR)
Definition: odbccp32.c:1580
WCHAR * LPWSTR
Definition: xmlstorage.h:184
BOOL INSTAPI SQLManageDataSources(HWND)
Definition: odbccp32.c:1273
BOOL INSTAPI SQLWriteDSNToIniW(LPCWSTR, LPCWSTR)
Definition: odbccp32.c:1546
BOOL INSTAPI SQLValidDSN(LPCSTR)
Definition: odbccp32.c:1532
BOOL INSTAPI SQLInstallTranslatorExW(LPCWSTR, LPCWSTR, LPWSTR, WORD, WORD *, WORD, LPDWORD)
Definition: odbccp32.c:1166
BOOL INSTAPI SQLInstallDriverManager(LPSTR, WORD, WORD *)
Definition: odbccp32.c:1025