10 #define INSTAPI __stdcall
11 #define ODBC_ADD_DSN 1
12 #define ODBC_CONFIG_DSN 2
13 #define ODBC_REMOVE_DSN 3
14 #if (ODBCVER >= 0x0250)
15 #define ODBC_ADD_SYS_DSN 4
16 #define ODBC_CONFIG_SYS_DSN 5
17 #define ODBC_REMOVE_SYS_DSN 6
18 #define ODBC_INSTALL_INQUIRY 1
19 #define ODBC_INSTALL_COMPLETE 2
20 #define ODBC_INSTALL_DRIVER 1
21 #define ODBC_REMOVE_DRIVER 2
22 #define ODBC_CONFIG_DRIVER 3
23 #define ODBC_CONFIG_DRIVER_MAX 100
24 #endif /* (ODBCVER >= 0x0250) */
25 #if (ODBCVER >= 0x0300)
26 #define ODBC_REMOVE_DEFAULT_DSN 7
27 #define ODBC_BOTH_DSN 0
28 #define ODBC_USER_DSN 1
29 #define ODBC_SYSTEM_DSN 2
30 #define ODBC_ERROR_GENERAL_ERR 1
31 #define ODBC_ERROR_INVALID_BUFF_LEN 2
32 #define ODBC_ERROR_INVALID_HWND 3
33 #define ODBC_ERROR_INVALID_STR 4
34 #define ODBC_ERROR_INVALID_REQUEST_TYPE 5
35 #define ODBC_ERROR_COMPONENT_NOT_FOUND 6
36 #define ODBC_ERROR_INVALID_NAME 7
37 #define ODBC_ERROR_INVALID_KEYWORD_VALUE 8
38 #define ODBC_ERROR_INVALID_DSN 9
39 #define ODBC_ERROR_INVALID_INF 10
40 #define ODBC_ERROR_REQUEST_FAILED 11
41 #define ODBC_ERROR_INVALID_PATH 12
42 #define ODBC_ERROR_LOAD_LIB_FAILED 13
43 #define ODBC_ERROR_INVALID_PARAM_SEQUENCE 14
44 #define ODBC_ERROR_INVALID_LOG_FILE 15
45 #define ODBC_ERROR_USER_CANCELED 16
46 #define ODBC_ERROR_USAGE_UPDATE_FAILED 17
47 #define ODBC_ERROR_CREATE_DSN_FAILED 18
48 #define ODBC_ERROR_WRITING_SYSINFO_FAILED 19
49 #define ODBC_ERROR_REMOVE_DSN_FAILED 20
50 #define ODBC_ERROR_OUT_OF_MEM 21
51 #define ODBC_ERROR_OUTPUT_STRING_TRUNCATED 22
52 #endif /* ODBCVER >= 0x0300 */
55 BOOL INSTAPI
ConfigDSN(HWND
,WORD
,LPCSTR
,LPCSTR
);
56 BOOL INSTAPI
ConfigDSNW(HWND
,WORD
,LPCWSTR
,LPCWSTR
);
57 BOOL INSTAPI
ConfigTranslator(HWND
,DWORD
*);
58 BOOL INSTAPI
SQLConfigDataSource(HWND
,WORD
,LPCSTR
,LPCSTR
);
59 BOOL INSTAPI
SQLConfigDataSourceW(HWND
,WORD
,LPCWSTR
,LPCWSTR
);
60 BOOL INSTAPI
SQLCreateDataSource(HWND
,LPCSTR
);
61 BOOL INSTAPI
SQLCreateDataSourceW(HWND
,LPCWSTR
);
62 BOOL INSTAPI
SQLGetAvailableDrivers(LPCSTR
,LPSTR
,WORD
,WORD
*);
63 BOOL INSTAPI
SQLGetAvailableDriversW(LPCWSTR
,LPWSTR
,WORD
,WORD
*);
64 BOOL INSTAPI
SQLGetInstalledDrivers(LPSTR
,WORD
,WORD
*);
65 BOOL INSTAPI
SQLGetInstalledDriversW(LPWSTR
,WORD
,WORD
*);
66 int INSTAPI
SQLGetPrivateProfileString(LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,int,LPCSTR
);
67 int INSTAPI
SQLGetPrivateProfileStringW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPWSTR
,int,LPCWSTR
);
68 BOOL INSTAPI
SQLGetTranslator(HWND
,LPSTR
,WORD
,WORD
*,LPSTR
,WORD
,WORD
*,DWORD
*);
69 BOOL INSTAPI
SQLGetTranslatorW(HWND
,LPWSTR
,WORD
,WORD
*,LPWSTR
,WORD
,WORD
*,DWORD
*);
70 BOOL INSTAPI
SQLInstallDriver(LPCSTR
,LPCSTR
,LPSTR
,WORD
,WORD
*);
71 BOOL INSTAPI
SQLInstallDriverManager(LPSTR
,WORD
,WORD
*);
72 BOOL INSTAPI
SQLInstallDriverManagerW(LPWSTR
,WORD
,WORD
*);
73 BOOL INSTAPI
SQLInstallDriverW(LPCWSTR
,LPCWSTR
,LPWSTR
,WORD
,WORD
*);
74 BOOL INSTAPI
SQLInstallODBC(HWND
,LPCSTR
,LPCSTR
,LPCSTR
);
75 BOOL INSTAPI
SQLInstallODBCW(HWND
,LPCWSTR
,LPCWSTR
,LPCWSTR
);
76 BOOL INSTAPI
SQLManageDataSources(HWND
);
77 BOOL INSTAPI
SQLRemoveDefaultDataSource(void);
78 BOOL INSTAPI
SQLRemoveDSNFromIni(LPCSTR
);
79 BOOL INSTAPI
SQLRemoveDSNFromIniW(LPCWSTR
);
80 BOOL INSTAPI
SQLValidDSN(LPCSTR
);
81 BOOL INSTAPI
SQLValidDSNW(LPCWSTR
);
82 BOOL INSTAPI
SQLWriteDSNToIni(LPCSTR
,LPCSTR
);
83 BOOL INSTAPI
SQLWriteDSNToIniW(LPCWSTR
,LPCWSTR
);
84 BOOL INSTAPI
SQLWritePrivateProfileString(LPCSTR
,LPCSTR
,LPCSTR
,LPCSTR
);
85 BOOL INSTAPI
SQLWritePrivateProfileStringW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPCWSTR
);
86 #if(ODBCVER >= 0x0250)
87 BOOL INSTAPI
ConfigDriver(HWND
,WORD
,LPCSTR
,LPCSTR
,LPSTR
,WORD
,WORD
*);
88 BOOL INSTAPI
ConfigDriverW(HWND
,WORD
,LPCWSTR
,LPCWSTR
,LPWSTR
,WORD
,WORD
*);
89 BOOL INSTAPI
SQLConfigDriver(HWND
,WORD
,LPCSTR
,LPCSTR
,LPSTR
,WORD
,WORD
*);
90 BOOL INSTAPI
SQLConfigDriverW(HWND
,WORD
,LPCWSTR
,LPCWSTR
,LPWSTR
,WORD
,WORD
*);
91 BOOL INSTAPI
SQLInstallTranslator(LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,WORD
,WORD
*,WORD
,LPDWORD
);
92 BOOL INSTAPI
SQLInstallTranslatorW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPWSTR
,WORD
,WORD
*,WORD
,LPDWORD
);
93 BOOL INSTAPI
SQLRemoveDriver(LPCSTR
,BOOL
,LPDWORD
);
94 BOOL INSTAPI
SQLRemoveDriverManager(LPDWORD
);
95 BOOL INSTAPI
SQLRemoveDriverW(LPCWSTR
,BOOL
,LPDWORD
);
96 BOOL INSTAPI
SQLRemoveTranslator(LPCSTR
,LPDWORD
);
97 BOOL INSTAPI
SQLRemoveTranslatorW(LPCWSTR
,LPDWORD
);
98 #endif /* ODBCVER >= 0x0250 */
99 #if (ODBCVER >= 0x0300)
100 BOOL INSTAPI
SQLGetConfigMode(UWORD
*);
101 BOOL INSTAPI
SQLInstallDriverEx(LPCSTR
,LPCSTR
,LPSTR
,WORD
,WORD
*,WORD
,LPDWORD
);
102 BOOL INSTAPI
SQLInstallDriverExW(LPCWSTR
,LPCWSTR
,LPWSTR
,WORD
,WORD
*,WORD
,LPDWORD
);
103 SQLRETURN INSTAPI
SQLInstallerError(WORD
,DWORD
*,LPSTR
,WORD
,WORD
*);
104 SQLRETURN INSTAPI
SQLInstallerErrorW(WORD
,DWORD
*,LPWSTR
,WORD
,WORD
*);
105 BOOL INSTAPI
SQLInstallTranslatorEx(LPCSTR
,LPCSTR
,LPSTR
,WORD
,WORD
*,WORD
,LPDWORD
);
106 BOOL INSTAPI
SQLInstallTranslatorExW(LPCWSTR
,LPCWSTR
,LPWSTR
,WORD
,WORD
*,WORD
,LPDWORD
);
107 SQLRETURN INSTAPI
SQLPostInstallerError(DWORD
,LPCSTR
);
108 SQLRETURN INSTAPI
SQLPostInstallerErrorW(DWORD
,LPCWSTR
);
109 BOOL INSTAPI
SQLReadFileDSN(LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,WORD
,WORD
*);
110 BOOL INSTAPI
SQLReadFileDSNW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPWSTR
,WORD
,WORD
*);
111 BOOL INSTAPI
SQLSetConfigMode(UWORD
);
112 BOOL INSTAPI
SQLWriteFileDSN(LPCSTR
,LPCSTR
,LPCSTR
,LPCSTR
);
113 BOOL INSTAPI
SQLWriteFileDSNW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPCWSTR
);
114 #endif /* ODBCVER >= 0x0300 */
116 #if defined (UNICODE) && !defined (SQL_NOUNICODEMAP)
117 #define SQLConfigDataSource SQLConfigDataSourceW
118 #define SQLConfigDriver SQLConfigDriverW
119 #define SQLCreateDataSource SQLCreateDataSourceW
120 #define SQLGetAvailableDrivers SQLGetAvailableDriversW
121 #define SQLGetInstalledDrivers SQLGetInstalledDriversW
122 #define SQLGetPrivateProfileString SQLGetPrivateProfileStringW
123 #define SQLGetTranslator SQLGetTranslatorW
124 #define SQLInstallDriver SQLInstallDriverW
125 #define SQLInstallDriverEx SQLInstallDriverExW
126 #define SQLInstallDriverManager SQLInstallDriverManagerW
127 #define SQLInstallerError SQLInstallerErrorW
128 #define SQLInstallODBC SQLInstallODBCW
129 #define SQLInstallTranslator SQLInstallTranslatorW
130 #define SQLInstallTranslatorEx SQLInstallTranslatorExW
131 #define SQLPostInstallerError SQLPostInstallerErrorW
132 #define SQLReadFileDSN SQLReadFileDSNW
133 #define SQLRemoveDriver SQLRemoveDriverW
134 #define SQLRemoveDSNFromIni SQLRemoveDSNFromIniW
135 #define SQLRemoveTranslator SQLRemoveTranslatorW
136 #define SQLValidDSN SQLValidDSNW
137 #define SQLWriteDSNToIni SQLWriteDSNToIniW
138 #define SQLWriteFileDSN SQLWriteFileDSNW
139 #define SQLWritePrivateProfileString SQLWritePrivateProfileStringW
140 #endif /* UNICODE && !SQL_NOUNICODEMAP */
141 #endif /* RC_INVOKED */
145 #endif /* _ODBCINST_H */