Leaked source code of windows server 2003
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.

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