SqlUcode.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:23k
源码类别:

模拟服务器

开发平台:

C/C++

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