25 typedef unsigned short WORD
;
26 typedef unsigned long DWORD
;
27 typedef unsigned char BYTE
;
28 typedef unsigned short WCHAR
;
29 typedef WCHAR
* LPWSTR
;
30 typedef const char* LPCSTR
;
32 typedef DWORD
* LPDWORD
;
35 typedef unsigned char SQLCHAR
;
37 #if (ODBCVER >= 0x0300)
38 typedef unsigned char SQLDATE
;
39 typedef unsigned char SQLDECIMAL
;
40 typedef double SQLDOUBLE
;
41 typedef double SQLFLOAT
;
44 typedef long SQLINTEGER
;
46 #if (ODBCVER >= 0x0300)
47 typedef unsigned char SQLNUMERIC
;
50 typedef void * SQLPOINTER
;
52 #if (ODBCVER >= 0x0300)
53 typedef float SQLREAL
;
56 typedef signed short int SQLSMALLINT
;
57 typedef unsigned short SQLUSMALLINT
;
59 #if (ODBCVER >= 0x0300)
60 typedef unsigned char SQLTIME
;
61 typedef unsigned char SQLTIMESTAMP
;
62 typedef unsigned char SQLVARCHAR
;
65 typedef SQLSMALLINT SQLRETURN
;
67 /* typedef void * SQLHANDLE; */
69 typedef SQLINTEGER SQLHANDLE
;
70 #if (ODBCVER >= 0x0300)
72 typedef SQLHANDLE SQLHENV
;
73 typedef SQLHANDLE SQLHDBC
;
74 typedef SQLHANDLE SQLHSTMT
;
75 typedef SQLHANDLE SQLHDESC
;
78 typedef SQLINTEGER SQLHENV
;
79 typedef SQLINTEGER SQLHDBC
;
80 typedef SQLINTEGER SQLHSTMT
;
83 typedef signed char SCHAR
;
84 typedef SCHAR SQLSCHAR
;
85 typedef long int SDWORD
;
86 typedef signed short int SWORD
;
87 typedef unsigned long int UDWORD
;
88 typedef unsigned short int UWORD
;
89 typedef UDWORD SQLUINTEGER
;
90 typedef signed long SLONG
;
91 typedef signed short SSHORT
;
92 typedef double SDOUBLE
;
93 typedef double LDOUBLE
;
96 typedef signed short RETCODE
;
97 typedef void* SQLHWND
;
99 typedef SQLHANDLE HENV
;
100 typedef SQLHANDLE HDBC
;
101 typedef SQLHANDLE HSTMT
;
105 typedef struct tagDATE_STRUCT
112 #if (ODBCVER >= 0x0300)
113 typedef DATE_STRUCT SQL_DATE_STRUCT
;
116 typedef struct tagTIME_STRUCT
123 #if (ODBCVER >= 0x0300)
124 typedef TIME_STRUCT SQL_TIME_STRUCT
;
127 typedef struct tagTIMESTAMP_STRUCT
135 SQLUINTEGER fraction
;
138 #if (ODBCVER >= 0x0300)
139 typedef TIMESTAMP_STRUCT SQL_TIMESTAMP_STRUCT
;
143 #if (ODBCVER >= 0x0300)
152 SQL_IS_YEAR_TO_MONTH
= 7,
153 SQL_IS_DAY_TO_HOUR
= 8,
154 SQL_IS_DAY_TO_MINUTE
= 9,
155 SQL_IS_DAY_TO_SECOND
= 10,
156 SQL_IS_HOUR_TO_MINUTE
= 11,
157 SQL_IS_HOUR_TO_SECOND
= 12,
158 SQL_IS_MINUTE_TO_SECOND
= 13
163 #if (ODBCVER >= 0x0300)
164 typedef struct tagSQL_YEAR_MONTH
168 } SQL_YEAR_MONTH_STRUCT
;
170 typedef struct tagSQL_DAY_SECOND
176 SQLUINTEGER fraction
;
177 } SQL_DAY_SECOND_STRUCT
;
179 typedef struct tagSQL_INTERVAL_STRUCT
181 SQLINTERVAL interval_type
;
182 SQLSMALLINT interval_sign
;
184 SQL_YEAR_MONTH_STRUCT year_month
;
185 SQL_DAY_SECOND_STRUCT day_second
;
188 } SQL_INTERVAL_STRUCT
;
194 #if (ODBCVER >= 0x0300)
195 #define ODBCINT64 long
197 typedef ODBCINT64 SQLBIGINT
;
198 typedef unsigned ODBCINT64 SQLUBIGINT
;
202 #if (ODBCVER >= 0x0300)
203 #define SQL_MAX_NUMERIC_LEN 16
204 typedef struct tagSQL_NUMERIC_STRUCT
208 SQLCHAR sign
; /* 1=pos 0=neg */
209 SQLCHAR val
[SQL_MAX_NUMERIC_LEN
];
210 } SQL_NUMERIC_STRUCT
;
213 #if (ODBCVER >= 0x0350)
215 typedef GUID SQLGUID
;
217 typedef struct tagSQLGUID
228 typedef unsigned long int BOOKMARK
;
230 #define SQL_WCHAR (-8)
231 #define SQL_C_WCHAR SQL_WCHAR