Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

895 lines
22 KiB

  1. #include "windows.h"
  2. #ifdef __cplusplus
  3. extern "C" { /* Assume C declarations for C++ */
  4. #endif /* __cplusplus */
  5. #include <sqlext.h>
  6. #define SQL_WCHAR (-8)
  7. #define SQL_WVARCHAR (-9)
  8. #define SQL_WLONGVARCHAR (-10)
  9. #define SQL_C_WCHAR SQL_WCHAR
  10. #ifdef UNICODE
  11. #define SQL_C_TCHAR SQL_C_WCHAR
  12. #else
  13. #define SQL_C_TCHAR SQL_C_CHAR
  14. #endif
  15. #define SQL_SQLSTATE_SIZEW 10 /* size of SQLSTATE for unicode */
  16. #ifndef RC_INVOKED
  17. // UNICODE versions
  18. SQLRETURN SQL_API SQLColAttributeW(
  19. SQLHSTMT hstmt,
  20. SQLUSMALLINT iCol,
  21. SQLUSMALLINT iField,
  22. SQLPOINTER pCharAttr,
  23. SQLSMALLINT cbCharAttrMax,
  24. SQLSMALLINT *pcbCharAttr,
  25. SQLPOINTER pNumAttr)
  26. {return 0;}
  27. SQLRETURN SQL_API SQLColAttributesW(
  28. SQLHSTMT hstmt,
  29. SQLUSMALLINT icol,
  30. SQLUSMALLINT fDescType,
  31. SQLPOINTER rgbDesc,
  32. SQLSMALLINT cbDescMax,
  33. SQLSMALLINT *pcbDesc,
  34. SQLLEN *pfDesc)
  35. {return 0;}
  36. SQLRETURN SQL_API SQLConnectW(
  37. SQLHDBC hdbc,
  38. SQLWCHAR *szDSN,
  39. SQLSMALLINT cbDSN,
  40. SQLWCHAR *szUID,
  41. SQLSMALLINT cbUID,
  42. SQLWCHAR *szAuthStr,
  43. SQLSMALLINT cbAuthStr)
  44. {return 0;}
  45. SQLRETURN SQL_API SQLDescribeColW(
  46. SQLHSTMT hstmt,
  47. SQLUSMALLINT icol,
  48. SQLWCHAR *szColName,
  49. SQLSMALLINT cbColNameMax,
  50. SQLSMALLINT *pcbColName,
  51. SQLSMALLINT *pfSqlType,
  52. SQLULEN *pcbColDef,
  53. SQLSMALLINT *pibScale,
  54. SQLSMALLINT *pfNullable)
  55. {return 0;}
  56. SQLRETURN SQL_API SQLErrorW(
  57. SQLHENV henv,
  58. SQLHDBC hdbc,
  59. SQLHSTMT hstmt,
  60. SQLWCHAR *szSqlState,
  61. SQLINTEGER *pfNativeError,
  62. SQLWCHAR *szErrorMsg,
  63. SQLSMALLINT cbErrorMsgMax,
  64. SQLSMALLINT *pcbErrorMsg)
  65. {return 0;}
  66. SQLRETURN SQL_API SQLExecDirectW(
  67. SQLHSTMT hstmt,
  68. SQLWCHAR *szSqlStr,
  69. SQLINTEGER cbSqlStr)
  70. {return 0;}
  71. SQLRETURN SQL_API SQLGetConnectAttrW(
  72. SQLHDBC hdbc,
  73. SQLINTEGER fAttribute,
  74. SQLPOINTER rgbValue,
  75. SQLINTEGER cbValueMax,
  76. SQLINTEGER *pcbValue)
  77. {return 0;}
  78. SQLRETURN SQL_API SQLGetCursorNameW(
  79. SQLHSTMT hstmt,
  80. SQLWCHAR *szCursor,
  81. SQLSMALLINT cbCursorMax,
  82. SQLSMALLINT *pcbCursor)
  83. {return 0;}
  84. #if (ODBCVER >= 0x0300)
  85. SQLRETURN SQL_API SQLSetDescFieldA(SQLHDESC DescriptorHandle,
  86. SQLSMALLINT RecNumber,
  87. SQLSMALLINT FieldIdentifier,
  88. SQLPOINTER Value,
  89. SQLINTEGER BufferLength)
  90. {return 0;}
  91. SQLRETURN SQL_API SQLSetDescFieldW(SQLHDESC DescriptorHandle,
  92. SQLSMALLINT RecNumber,
  93. SQLSMALLINT FieldIdentifier,
  94. SQLPOINTER Value,
  95. SQLINTEGER BufferLength)
  96. {return 0;}
  97. SQLRETURN SQL_API SQLGetDescFieldW(
  98. SQLHDESC hdesc,
  99. SQLSMALLINT iRecord,
  100. SQLSMALLINT iField,
  101. SQLPOINTER rgbValue,
  102. SQLINTEGER cbValueMax,
  103. SQLINTEGER *pcbValue)
  104. {return 0;}
  105. SQLRETURN SQL_API SQLGetDescRecW(
  106. SQLHDESC hdesc,
  107. SQLSMALLINT iRecord,
  108. SQLWCHAR *szName,
  109. SQLSMALLINT cbNameMax,
  110. SQLSMALLINT *pcbName,
  111. SQLSMALLINT *pfType,
  112. SQLSMALLINT *pfSubType,
  113. SQLLEN *pLength,
  114. SQLSMALLINT *pPrecision,
  115. SQLSMALLINT *pScale,
  116. SQLSMALLINT *pNullable)
  117. {return 0;}
  118. SQLRETURN SQL_API SQLGetDiagFieldW(
  119. SQLSMALLINT fHandleType,
  120. SQLHANDLE handle,
  121. SQLSMALLINT iRecord,
  122. SQLSMALLINT fDiagField,
  123. SQLPOINTER rgbDiagInfo,
  124. SQLSMALLINT cbDiagInfoMax,
  125. SQLSMALLINT *pcbDiagInfo)
  126. {return 0;}
  127. SQLRETURN SQL_API SQLGetDiagRecW(
  128. SQLSMALLINT fHandleType,
  129. SQLHANDLE handle,
  130. SQLSMALLINT iRecord,
  131. SQLWCHAR *szSqlState,
  132. SQLINTEGER *pfNativeError,
  133. SQLWCHAR *szErrorMsg,
  134. SQLSMALLINT cbErrorMsgMax,
  135. SQLSMALLINT *pcbErrorMsg)
  136. {return 0;}
  137. #endif
  138. SQLRETURN SQL_API SQLPrepareW(
  139. SQLHSTMT hstmt,
  140. SQLWCHAR *szSqlStr,
  141. SQLINTEGER cbSqlStr)
  142. {return 0;}
  143. SQLRETURN SQL_API SQLSetConnectAttrW(
  144. SQLHDBC hdbc,
  145. SQLINTEGER fAttribute,
  146. SQLPOINTER rgbValue,
  147. SQLINTEGER cbValue)
  148. {return 0;}
  149. SQLRETURN SQL_API SQLSetCursorNameW(
  150. SQLHSTMT hstmt,
  151. SQLWCHAR *szCursor,
  152. SQLSMALLINT cbCursor)
  153. {return 0;}
  154. SQLRETURN SQL_API SQLColumnsW(
  155. SQLHSTMT hstmt,
  156. SQLWCHAR *szCatalogName,
  157. SQLSMALLINT cbCatalogName,
  158. SQLWCHAR *szSchemaName,
  159. SQLSMALLINT cbSchemaName,
  160. SQLWCHAR *szTableName,
  161. SQLSMALLINT cbTableName,
  162. SQLWCHAR *szColumnName,
  163. SQLSMALLINT cbColumnName)
  164. {return 0;}
  165. SQLRETURN SQL_API SQLGetConnectOptionW(
  166. SQLHDBC hdbc,
  167. SQLUSMALLINT fOption,
  168. SQLPOINTER pvParam)
  169. {return 0;}
  170. SQLRETURN SQL_API SQLGetInfoW(
  171. SQLHDBC hdbc,
  172. SQLUSMALLINT fInfoType,
  173. SQLPOINTER rgbInfoValue,
  174. SQLSMALLINT cbInfoValueMax,
  175. SQLSMALLINT *pcbInfoValue)
  176. {return 0;}
  177. SQLRETURN SQL_API SQLGetTypeInfoW(
  178. SQLHSTMT StatementHandle,
  179. SQLSMALLINT DataType)
  180. {return 0;}
  181. SQLRETURN SQL_API SQLSetConnectOptionW(
  182. SQLHDBC hdbc,
  183. SQLUSMALLINT fOption,
  184. SQLULEN vParam)
  185. {return 0;}
  186. SQLRETURN SQL_API SQLSpecialColumnsW(
  187. SQLHSTMT hstmt,
  188. SQLUSMALLINT fColType,
  189. SQLWCHAR *szCatalogName,
  190. SQLSMALLINT cbCatalogName,
  191. SQLWCHAR *szSchemaName,
  192. SQLSMALLINT cbSchemaName,
  193. SQLWCHAR *szTableName,
  194. SQLSMALLINT cbTableName,
  195. SQLUSMALLINT fScope,
  196. SQLUSMALLINT fNullable)
  197. {return 0;}
  198. SQLRETURN SQL_API SQLStatisticsW(
  199. SQLHSTMT hstmt,
  200. SQLWCHAR *szCatalogName,
  201. SQLSMALLINT cbCatalogName,
  202. SQLWCHAR *szSchemaName,
  203. SQLSMALLINT cbSchemaName,
  204. SQLWCHAR *szTableName,
  205. SQLSMALLINT cbTableName,
  206. SQLUSMALLINT fUnique,
  207. SQLUSMALLINT fAccuracy)
  208. {return 0;}
  209. SQLRETURN SQL_API SQLTablesW(
  210. SQLHSTMT hstmt,
  211. SQLWCHAR *szCatalogName,
  212. SQLSMALLINT cbCatalogName,
  213. SQLWCHAR *szSchemaName,
  214. SQLSMALLINT cbSchemaName,
  215. SQLWCHAR *szTableName,
  216. SQLSMALLINT cbTableName,
  217. SQLWCHAR *szTableType,
  218. SQLSMALLINT cbTableType)
  219. {return 0;}
  220. SQLRETURN SQL_API SQLDataSourcesW(
  221. SQLHENV henv,
  222. SQLUSMALLINT fDirection,
  223. SQLWCHAR *szDSN,
  224. SQLSMALLINT cbDSNMax,
  225. SQLSMALLINT *pcbDSN,
  226. SQLWCHAR *szDescription,
  227. SQLSMALLINT cbDescriptionMax,
  228. SQLSMALLINT *pcbDescription)
  229. {return 0;}
  230. SQLRETURN SQL_API SQLDriverConnectW(
  231. SQLHDBC hdbc,
  232. SQLHWND hwnd,
  233. SQLWCHAR *szConnStrIn,
  234. SQLSMALLINT cbConnStrIn,
  235. SQLWCHAR *szConnStrOut,
  236. SQLSMALLINT cbConnStrOutMax,
  237. SQLSMALLINT *pcbConnStrOut,
  238. SQLUSMALLINT fDriverCompletion)
  239. {return 0;}
  240. SQLRETURN SQL_API SQLBrowseConnectW(
  241. SQLHDBC hdbc,
  242. SQLWCHAR *szConnStrIn,
  243. SQLSMALLINT cbConnStrIn,
  244. SQLWCHAR *szConnStrOut,
  245. SQLSMALLINT cbConnStrOutMax,
  246. SQLSMALLINT *pcbConnStrOut)
  247. {return 0;}
  248. SQLRETURN SQL_API SQLColumnPrivilegesW(
  249. SQLHSTMT hstmt,
  250. SQLWCHAR *szCatalogName,
  251. SQLSMALLINT cbCatalogName,
  252. SQLWCHAR *szSchemaName,
  253. SQLSMALLINT cbSchemaName,
  254. SQLWCHAR *szTableName,
  255. SQLSMALLINT cbTableName,
  256. SQLWCHAR *szColumnName,
  257. SQLSMALLINT cbColumnName)
  258. {return 0;}
  259. SQLRETURN SQL_API SQLGetStmtAttrW(
  260. SQLHSTMT hstmt,
  261. SQLINTEGER fAttribute,
  262. SQLPOINTER rgbValue,
  263. SQLINTEGER cbValueMax,
  264. SQLINTEGER *pcbValue)
  265. {return 0;}
  266. SQLRETURN SQL_API SQLSetStmtAttrA(
  267. SQLHSTMT hstmt,
  268. SQLINTEGER fAttribute,
  269. SQLPOINTER rgbValue,
  270. SQLINTEGER cbValueMax)
  271. {return 0;}
  272. SQLRETURN SQL_API SQLSetStmtAttrW(
  273. SQLHSTMT hstmt,
  274. SQLINTEGER fAttribute,
  275. SQLPOINTER rgbValue,
  276. SQLINTEGER cbValueMax)
  277. {return 0;}
  278. SQLRETURN SQL_API SQLForeignKeysW(
  279. SQLHSTMT hstmt,
  280. SQLWCHAR *szPkCatalogName,
  281. SQLSMALLINT cbPkCatalogName,
  282. SQLWCHAR *szPkSchemaName,
  283. SQLSMALLINT cbPkSchemaName,
  284. SQLWCHAR *szPkTableName,
  285. SQLSMALLINT cbPkTableName,
  286. SQLWCHAR *szFkCatalogName,
  287. SQLSMALLINT cbFkCatalogName,
  288. SQLWCHAR *szFkSchemaName,
  289. SQLSMALLINT cbFkSchemaName,
  290. SQLWCHAR *szFkTableName,
  291. SQLSMALLINT cbFkTableName)
  292. {return 0;}
  293. SQLRETURN SQL_API SQLNativeSqlW(
  294. SQLHDBC hdbc,
  295. SQLWCHAR *szSqlStrIn,
  296. SQLINTEGER cbSqlStrIn,
  297. SQLWCHAR *szSqlStr,
  298. SQLINTEGER cbSqlStrMax,
  299. SQLINTEGER *pcbSqlStr)
  300. {return 0;}
  301. SQLRETURN SQL_API SQLPrimaryKeysW(
  302. SQLHSTMT hstmt,
  303. SQLWCHAR *szCatalogName,
  304. SQLSMALLINT cbCatalogName,
  305. SQLWCHAR *szSchemaName,
  306. SQLSMALLINT cbSchemaName,
  307. SQLWCHAR *szTableName,
  308. SQLSMALLINT cbTableName)
  309. {return 0;}
  310. SQLRETURN SQL_API SQLProcedureColumnsW(
  311. SQLHSTMT hstmt,
  312. SQLWCHAR *szCatalogName,
  313. SQLSMALLINT cbCatalogName,
  314. SQLWCHAR *szSchemaName,
  315. SQLSMALLINT cbSchemaName,
  316. SQLWCHAR *szProcName,
  317. SQLSMALLINT cbProcName,
  318. SQLWCHAR *szColumnName,
  319. SQLSMALLINT cbColumnName)
  320. {return 0;}
  321. SQLRETURN SQL_API SQLProceduresW(
  322. SQLHSTMT hstmt,
  323. SQLWCHAR *szCatalogName,
  324. SQLSMALLINT cbCatalogName,
  325. SQLWCHAR *szSchemaName,
  326. SQLSMALLINT cbSchemaName,
  327. SQLWCHAR *szProcName,
  328. SQLSMALLINT cbProcName)
  329. {return 0;}
  330. SQLRETURN SQL_API SQLTablePrivilegesW(
  331. SQLHSTMT hstmt,
  332. SQLWCHAR *szCatalogName,
  333. SQLSMALLINT cbCatalogName,
  334. SQLWCHAR *szSchemaName,
  335. SQLSMALLINT cbSchemaName,
  336. SQLWCHAR *szTableName,
  337. SQLSMALLINT cbTableName)
  338. {return 0;}
  339. SQLRETURN SQL_API SQLDriversW(
  340. SQLHENV henv,
  341. SQLUSMALLINT fDirection,
  342. SQLWCHAR *szDriverDesc,
  343. SQLSMALLINT cbDriverDescMax,
  344. SQLSMALLINT *pcbDriverDesc,
  345. SQLWCHAR *szDriverAttributes,
  346. SQLSMALLINT cbDrvrAttrMax,
  347. SQLSMALLINT *pcbDrvrAttr)
  348. {return 0;}
  349. // ANSI versions
  350. SQLRETURN SQL_API SQLColAttributeA(
  351. SQLHSTMT hstmt,
  352. SQLSMALLINT iCol,
  353. SQLSMALLINT iField,
  354. SQLPOINTER pCharAttr,
  355. SQLSMALLINT cbCharAttrMax,
  356. SQLSMALLINT *pcbCharAttr,
  357. SQLPOINTER pNumAttr)
  358. {return 0;}
  359. SQLRETURN SQL_API SQLColAttributesA(
  360. SQLHSTMT hstmt,
  361. SQLUSMALLINT icol,
  362. SQLUSMALLINT fDescType,
  363. SQLPOINTER rgbDesc,
  364. SQLSMALLINT cbDescMax,
  365. SQLSMALLINT *pcbDesc,
  366. SQLINTEGER *pfDesc)
  367. {return 0;}
  368. SQLRETURN SQL_API SQLConnectA(
  369. SQLHDBC hdbc,
  370. SQLCHAR *szDSN,
  371. SQLSMALLINT cbDSN,
  372. SQLCHAR *szUID,
  373. SQLSMALLINT cbUID,
  374. SQLCHAR *szAuthStr,
  375. SQLSMALLINT cbAuthStr)
  376. {return 0;}
  377. SQLRETURN SQL_API SQLDescribeColA(
  378. SQLHSTMT hstmt,
  379. SQLUSMALLINT icol,
  380. SQLCHAR *szColName,
  381. SQLSMALLINT cbColNameMax,
  382. SQLSMALLINT *pcbColName,
  383. SQLSMALLINT *pfSqlType,
  384. SQLUINTEGER *pcbColDef,
  385. SQLSMALLINT *pibScale,
  386. SQLSMALLINT *pfNullable)
  387. {return 0;}
  388. SQLRETURN SQL_API SQLErrorA(
  389. SQLHENV henv,
  390. SQLHDBC hdbc,
  391. SQLHSTMT hstmt,
  392. SQLCHAR *szSqlState,
  393. SQLINTEGER *pfNativeError,
  394. SQLCHAR *szErrorMsg,
  395. SQLSMALLINT cbErrorMsgMax,
  396. SQLSMALLINT *pcbErrorMsg)
  397. {return 0;}
  398. SQLRETURN SQL_API SQLExecDirectA(
  399. SQLHSTMT hstmt,
  400. SQLCHAR *szSqlStr,
  401. SQLINTEGER cbSqlStr)
  402. {return 0;}
  403. SQLRETURN SQL_API SQLGetConnectAttrA(
  404. SQLHDBC hdbc,
  405. SQLINTEGER fAttribute,
  406. SQLPOINTER rgbValue,
  407. SQLINTEGER cbValueMax,
  408. SQLINTEGER *pcbValue)
  409. {return 0;}
  410. SQLRETURN SQL_API SQLGetCursorNameA(
  411. SQLHSTMT hstmt,
  412. SQLCHAR *szCursor,
  413. SQLSMALLINT cbCursorMax,
  414. SQLSMALLINT *pcbCursor)
  415. {return 0;}
  416. #if (ODBCVER >= 0x0300)
  417. SQLRETURN SQL_API SQLGetDescFieldA(
  418. SQLHDESC hdesc,
  419. SQLSMALLINT iRecord,
  420. SQLSMALLINT iField,
  421. SQLPOINTER rgbValue,
  422. SQLINTEGER cbValueMax,
  423. SQLINTEGER *pcbValue)
  424. {return 0;}
  425. SQLRETURN SQL_API SQLGetDescRecA(
  426. SQLHDESC hdesc,
  427. SQLSMALLINT iRecord,
  428. SQLCHAR *szName,
  429. SQLSMALLINT cbNameMax,
  430. SQLSMALLINT *pcbName,
  431. SQLSMALLINT *pfType,
  432. SQLSMALLINT *pfSubType,
  433. SQLINTEGER *pLength,
  434. SQLSMALLINT *pPrecision,
  435. SQLSMALLINT *pScale,
  436. SQLSMALLINT *pNullable)
  437. {return 0;}
  438. SQLRETURN SQL_API SQLGetDiagFieldA(
  439. SQLSMALLINT fHandleType,
  440. SQLHANDLE handle,
  441. SQLSMALLINT iRecord,
  442. SQLSMALLINT fDiagField,
  443. SQLPOINTER rgbDiagInfo,
  444. SQLSMALLINT cbDiagInfoMax,
  445. SQLSMALLINT *pcbDiagInfo)
  446. {return 0;}
  447. SQLRETURN SQL_API SQLGetDiagRecA(
  448. SQLSMALLINT fHandleType,
  449. SQLHANDLE handle,
  450. SQLSMALLINT iRecord,
  451. SQLCHAR *szSqlState,
  452. SQLINTEGER *pfNativeError,
  453. SQLCHAR *szErrorMsg,
  454. SQLSMALLINT cbErrorMsgMax,
  455. SQLSMALLINT *pcbErrorMsg)
  456. {return 0;}
  457. SQLRETURN SQL_API SQLGetStmtAttrA(
  458. SQLHSTMT hstmt,
  459. SQLINTEGER fAttribute,
  460. SQLPOINTER rgbValue,
  461. SQLINTEGER cbValueMax,
  462. SQLINTEGER *pcbValue)
  463. {return 0;}
  464. #endif
  465. SQLRETURN SQL_API SQLGetTypeInfoA(
  466. SQLHSTMT StatementHandle,
  467. SQLSMALLINT DataTyoe)
  468. {return 0;}
  469. SQLRETURN SQL_API SQLPrepareA(
  470. SQLHSTMT hstmt,
  471. SQLCHAR *szSqlStr,
  472. SQLINTEGER cbSqlStr)
  473. {return 0;}
  474. SQLRETURN SQL_API SQLSetConnectAttrA(
  475. SQLHDBC hdbc,
  476. SQLINTEGER fAttribute,
  477. SQLPOINTER rgbValue,
  478. SQLINTEGER cbValue)
  479. {return 0;}
  480. SQLRETURN SQL_API SQLSetCursorNameA(
  481. SQLHSTMT hstmt,
  482. SQLCHAR *szCursor,
  483. SQLSMALLINT cbCursor)
  484. {return 0;}
  485. SQLRETURN SQL_API SQLColumnsA(
  486. SQLHSTMT hstmt,
  487. SQLCHAR *szCatalogName,
  488. SQLSMALLINT cbCatalogName,
  489. SQLCHAR *szSchemaName,
  490. SQLSMALLINT cbSchemaName,
  491. SQLCHAR *szTableName,
  492. SQLSMALLINT cbTableName,
  493. SQLCHAR *szColumnName,
  494. SQLSMALLINT cbColumnName)
  495. {return 0;}
  496. SQLRETURN SQL_API SQLGetConnectOptionA(
  497. SQLHDBC hdbc,
  498. SQLUSMALLINT fOption,
  499. SQLPOINTER pvParam)
  500. {return 0;}
  501. SQLRETURN SQL_API SQLGetInfoA(
  502. SQLHDBC hdbc,
  503. SQLUSMALLINT fInfoType,
  504. SQLPOINTER rgbInfoValue,
  505. SQLSMALLINT cbInfoValueMax,
  506. SQLSMALLINT* pcbInfoValue)
  507. {return 0;}
  508. SQLRETURN SQL_API SQLGetStmtOptionA(
  509. SQLHSTMT hstmt,
  510. SQLUSMALLINT fOption,
  511. SQLPOINTER pvParam)
  512. {return 0;}
  513. SQLRETURN SQL_API SQLSetConnectOptionA(
  514. SQLHDBC hdbc,
  515. SQLUSMALLINT fOption,
  516. SQLULEN vParam)
  517. {return 0;}
  518. SQLRETURN SQL_API SQLSetStmtOptionA(
  519. SQLHSTMT hstmt,
  520. SQLUSMALLINT fOption,
  521. SQLULEN vParam)
  522. {return 0;}
  523. SQLRETURN SQL_API SQLSpecialColumnsA(
  524. SQLHSTMT hstmt,
  525. SQLUSMALLINT fColType,
  526. SQLCHAR *szCatalogName,
  527. SQLSMALLINT cbCatalogName,
  528. SQLCHAR *szSchemaName,
  529. SQLSMALLINT cbSchemaName,
  530. SQLCHAR *szTableName,
  531. SQLSMALLINT cbTableName,
  532. SQLUSMALLINT fScope,
  533. SQLUSMALLINT fNullable)
  534. {return 0;}
  535. SQLRETURN SQL_API SQLStatisticsA(
  536. SQLHSTMT hstmt,
  537. SQLCHAR *szCatalogName,
  538. SQLSMALLINT cbCatalogName,
  539. SQLCHAR *szSchemaName,
  540. SQLSMALLINT cbSchemaName,
  541. SQLCHAR *szTableName,
  542. SQLSMALLINT cbTableName,
  543. SQLUSMALLINT fUnique,
  544. SQLUSMALLINT fAccuracy)
  545. {return 0;}
  546. SQLRETURN SQL_API SQLTablesA(
  547. SQLHSTMT hstmt,
  548. SQLCHAR *szCatalogName,
  549. SQLSMALLINT cbCatalogName,
  550. SQLCHAR *szSchemaName,
  551. SQLSMALLINT cbSchemaName,
  552. SQLCHAR *szTableName,
  553. SQLSMALLINT cbTableName,
  554. SQLCHAR *szTableType,
  555. SQLSMALLINT cbTableType)
  556. {return 0;}
  557. SQLRETURN SQL_API SQLDataSourcesA(
  558. SQLHENV henv,
  559. SQLUSMALLINT fDirection,
  560. SQLCHAR *szDSN,
  561. SQLSMALLINT cbDSNMax,
  562. SQLSMALLINT *pcbDSN,
  563. SQLCHAR *szDescription,
  564. SQLSMALLINT cbDescriptionMax,
  565. SQLSMALLINT *pcbDescription)
  566. {return 0;}
  567. SQLRETURN SQL_API SQLDriverConnectA(
  568. SQLHDBC hdbc,
  569. SQLHWND hwnd,
  570. SQLCHAR *szConnStrIn,
  571. SQLSMALLINT cbConnStrIn,
  572. SQLCHAR *szConnStrOut,
  573. SQLSMALLINT cbConnStrOutMax,
  574. SQLSMALLINT *pcbConnStrOut,
  575. SQLUSMALLINT fDriverCompletion)
  576. {return 0;}
  577. SQLRETURN SQL_API SQLBrowseConnectA(
  578. SQLHDBC hdbc,
  579. SQLCHAR *szConnStrIn,
  580. SQLSMALLINT cbConnStrIn,
  581. SQLCHAR *szConnStrOut,
  582. SQLSMALLINT cbConnStrOutMax,
  583. SQLSMALLINT *pcbConnStrOut)
  584. {return 0;}
  585. SQLRETURN SQL_API SQLColumnPrivilegesA(
  586. SQLHSTMT hstmt,
  587. SQLCHAR *szCatalogName,
  588. SQLSMALLINT cbCatalogName,
  589. SQLCHAR *szSchemaName,
  590. SQLSMALLINT cbSchemaName,
  591. SQLCHAR *szTableName,
  592. SQLSMALLINT cbTableName,
  593. SQLCHAR *szColumnName,
  594. SQLSMALLINT cbColumnName)
  595. {return 0;}
  596. SQLRETURN SQL_API SQLDescribeParamA(
  597. SQLHSTMT hstmt,
  598. SQLUSMALLINT ipar,
  599. SQLSMALLINT *pfSqlType,
  600. SQLUINTEGER *pcbParamDef,
  601. SQLSMALLINT *pibScale,
  602. SQLSMALLINT *pfNullable)
  603. {return 0;}
  604. SQLRETURN SQL_API SQLForeignKeysA(
  605. SQLHSTMT hstmt,
  606. SQLCHAR *szPkCatalogName,
  607. SQLSMALLINT cbPkCatalogName,
  608. SQLCHAR *szPkSchemaName,
  609. SQLSMALLINT cbPkSchemaName,
  610. SQLCHAR *szPkTableName,
  611. SQLSMALLINT cbPkTableName,
  612. SQLCHAR *szFkCatalogName,
  613. SQLSMALLINT cbFkCatalogName,
  614. SQLCHAR *szFkSchemaName,
  615. SQLSMALLINT cbFkSchemaName,
  616. SQLCHAR *szFkTableName,
  617. SQLSMALLINT cbFkTableName)
  618. {return 0;}
  619. SQLRETURN SQL_API SQLNativeSqlA(
  620. SQLHDBC hdbc,
  621. SQLCHAR *szSqlStrIn,
  622. SQLINTEGER cbSqlStrIn,
  623. SQLCHAR *szSqlStr,
  624. SQLINTEGER cbSqlStrMax,
  625. SQLINTEGER *pcbSqlStr)
  626. {return 0;}
  627. SQLRETURN SQL_API SQLPrimaryKeysA(
  628. SQLHSTMT hstmt,
  629. SQLCHAR *szCatalogName,
  630. SQLSMALLINT cbCatalogName,
  631. SQLCHAR *szSchemaName,
  632. SQLSMALLINT cbSchemaName,
  633. SQLCHAR *szTableName,
  634. SQLSMALLINT cbTableName)
  635. {return 0;}
  636. SQLRETURN SQL_API SQLProcedureColumnsA(
  637. SQLHSTMT hstmt,
  638. SQLCHAR *szCatalogName,
  639. SQLSMALLINT cbCatalogName,
  640. SQLCHAR *szSchemaName,
  641. SQLSMALLINT cbSchemaName,
  642. SQLCHAR *szProcName,
  643. SQLSMALLINT cbProcName,
  644. SQLCHAR *szColumnName,
  645. SQLSMALLINT cbColumnName)
  646. {return 0;}
  647. SQLRETURN SQL_API SQLProceduresA(
  648. SQLHSTMT hstmt,
  649. SQLCHAR *szCatalogName,
  650. SQLSMALLINT cbCatalogName,
  651. SQLCHAR *szSchemaName,
  652. SQLSMALLINT cbSchemaName,
  653. SQLCHAR *szProcName,
  654. SQLSMALLINT cbProcName)
  655. {return 0;}
  656. SQLRETURN SQL_API SQLTablePrivilegesA(
  657. SQLHSTMT hstmt,
  658. SQLCHAR *szCatalogName,
  659. SQLSMALLINT cbCatalogName,
  660. SQLCHAR *szSchemaName,
  661. SQLSMALLINT cbSchemaName,
  662. SQLCHAR *szTableName,
  663. SQLSMALLINT cbTableName)
  664. {return 0;}
  665. SQLRETURN SQL_API SQLDriversA(
  666. SQLHENV henv,
  667. SQLUSMALLINT fDirection,
  668. SQLCHAR *szDriverDesc,
  669. SQLSMALLINT cbDriverDescMax,
  670. SQLSMALLINT *pcbDriverDesc,
  671. SQLCHAR *szDriverAttributes,
  672. SQLSMALLINT cbDrvrAttrMax,
  673. SQLSMALLINT *pcbDrvrAttr)
  674. {return 0;}
  675. //---------------------------------------------
  676. // Mapping macros for Unicode
  677. //---------------------------------------------
  678. #ifndef SQL_NOUNICODEMAP // define this to disable the mapping
  679. #ifdef UNICODE
  680. #define SQLColAttribute SQLColAttributeW
  681. #define SQLColAttributes SQLColAttributesW
  682. #define SQLConnect SQLConnectW
  683. #define SQLDescribeCol SQLDescribeColW
  684. #define SQLError SQLErrorW
  685. #define SQLExecDirect SQLExecDirectW
  686. #define SQLGetConnectAttr SQLGetConnectAttrW
  687. #define SQLGetCursorName SQLGetCursorNameW
  688. #define SQLGetDescField SQLGetDescFieldW
  689. #define SQLGetDescRec SQLGetDescRecW
  690. #define SQLGetDiagField SQLGetDiagFieldW
  691. #define SQLGetDiagRec SQLGetDiagRecW
  692. #define SQLPrepare SQLPrepareW
  693. #define SQLSetConnectAttr SQLSetConnectAttrW
  694. #define SQLSetCursorName SQLSetCursorNameW
  695. #define SQLSetDescField SQLSetDescFieldW
  696. #define SQLSetStmtAttr SQLSetStmtAttrW
  697. #define SQLGetStmtAttr SQLGetStmtAttrW
  698. #define SQLColumns SQLColumnsW
  699. #define SQLGetConnectOption SQLGetConnectOptionW
  700. #define SQLGetInfo SQLGetInfoW
  701. #define SQLGetTypeInfo SQLGetTypeInfoW
  702. #define SQLSetConnectOption SQLSetConnectOptionW
  703. #define SQLSpecialColumns SQLSpecialColumnsW
  704. #define SQLStatistics SQLStatisticsW
  705. #define SQLTables SQLTablesW
  706. #define SQLDataSources SQLDataSourcesW
  707. #define SQLDriverConnect SQLDriverConnectW
  708. #define SQLBrowseConnect SQLBrowseConnectW
  709. #define SQLColumnPrivileges SQLColumnPrivilegesW
  710. #define SQLForeignKeys SQLForeignKeysW
  711. #define SQLNativeSql SQLNativeSqlW
  712. #define SQLPrimaryKeys SQLPrimaryKeysW
  713. #define SQLProcedureColumns SQLProcedureColumnsW
  714. #define SQLProcedures SQLProceduresW
  715. #define SQLTablePrivileges SQLTablePrivilegesW
  716. #define SQLDrivers SQLDriversW
  717. #endif /* UNICODE */
  718. #endif /* SQL_NOUNICODEMAP */
  719. #endif /* RC_INVOKED */
  720. #ifdef __cplusplus
  721. } /* End of extern "C" { */
  722. #endif /* __cplusplus */