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.

124 lines
2.5 KiB

  1. #include "enduserpch.h"
  2. #pragma hdrstop
  3. #include <sql.h>
  4. #include <sqlext.h>
  5. #include <sqltypes.h>
  6. static
  7. SQLRETURN SQL_API SQLDisconnect(SQLHDBC ConnectionHandle)
  8. {
  9. return SQL_ERROR;
  10. }
  11. static
  12. SQLRETURN SQL_API SQLExecute(SQLHSTMT StatementHandle)
  13. {
  14. return SQL_ERROR;
  15. }
  16. static
  17. SQLRETURN SQL_API SQLAllocHandle(SQLSMALLINT HandleType,
  18. SQLHANDLE InputHandle, SQLHANDLE *OutputHandle)
  19. {
  20. return SQL_ERROR;
  21. }
  22. static
  23. SQLRETURN SQL_API SQLFreeHandle(SQLSMALLINT HandleType, SQLHANDLE Handle)
  24. {
  25. return SQL_ERROR;
  26. }
  27. static
  28. SQLRETURN SQL_API SQLSetConnectAttr(SQLHDBC ConnectionHandle,
  29. SQLINTEGER Attribute, SQLPOINTER Value,
  30. SQLINTEGER StringLength)
  31. {
  32. return SQL_ERROR;
  33. }
  34. static
  35. SQLRETURN SQL_API SQLBindParameter(
  36. SQLHSTMT hstmt,
  37. SQLUSMALLINT ipar,
  38. SQLSMALLINT fParamType,
  39. SQLSMALLINT fCType,
  40. SQLSMALLINT fSqlType,
  41. SQLULEN cbColDef,
  42. SQLSMALLINT ibScale,
  43. SQLPOINTER rgbValue,
  44. SQLLEN cbValueMax,
  45. SQLLEN *pcbValue)
  46. {
  47. return SQL_ERROR;
  48. }
  49. static
  50. SQLRETURN SQL_API SQLSetEnvAttr(SQLHENV EnvironmentHandle,
  51. SQLINTEGER Attribute, SQLPOINTER Value,
  52. SQLINTEGER StringLength)
  53. {
  54. return SQL_ERROR;
  55. }
  56. static
  57. SQLRETURN SQL_API SQLErrorW(
  58. SQLHENV henv,
  59. SQLHDBC hdbc,
  60. SQLHSTMT hstmt,
  61. SQLWCHAR *szSqlState,
  62. SQLINTEGER *pfNativeError,
  63. SQLWCHAR *szErrorMsg,
  64. SQLSMALLINT cbErrorMsgMax,
  65. SQLSMALLINT *pcbErrorMsg)
  66. {
  67. return SQL_ERROR;
  68. }
  69. static
  70. SQLRETURN SQL_API SQLPrepareW(
  71. SQLHSTMT hstmt,
  72. SQLWCHAR *szSqlStr,
  73. SQLINTEGER cbSqlStr)
  74. {
  75. return SQL_ERROR;
  76. }
  77. static
  78. SQLRETURN SQL_API SQLDriverConnectW(
  79. SQLHDBC hdbc,
  80. SQLHWND hwnd,
  81. SQLWCHAR *szConnStrIn,
  82. SQLSMALLINT cbConnStrIn,
  83. SQLWCHAR *szConnStrOut,
  84. SQLSMALLINT cbConnStrOutMax,
  85. SQLSMALLINT *pcbConnStrOut,
  86. SQLUSMALLINT fDriverCompletion)
  87. {
  88. return SQL_ERROR;
  89. }
  90. //
  91. // !! WARNING !! The entries below must be in order by ORDINAL
  92. //
  93. DEFINE_ORDINAL_ENTRIES(odbc32)
  94. {
  95. DLOENTRY(9,SQLDisconnect)
  96. DLOENTRY(12,SQLExecute)
  97. DLOENTRY(24,SQLAllocHandle)
  98. DLOENTRY(31,SQLFreeHandle)
  99. DLOENTRY(39,SQLSetConnectAttr)
  100. DLOENTRY(72,SQLBindParameter)
  101. DLOENTRY(75,SQLSetEnvAttr)
  102. DLOENTRY(110,SQLErrorW)
  103. DLOENTRY(119,SQLPrepareW)
  104. DLOENTRY(141,SQLDriverConnectW)
  105. };
  106. DEFINE_ORDINAL_MAP(odbc32)