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.

402 lines
8.6 KiB

  1. #include "dspch.h"
  2. #pragma hdrstop
  3. #include <esent98.h>
  4. static
  5. JET_ERR JET_API JetAddColumn(
  6. JET_SESID sesid,
  7. JET_TABLEID tableid,
  8. const char *szColumnName,
  9. const JET_COLUMNDEF *pcolumndef,
  10. const void *pvDefault,
  11. unsigned long cbDefault,
  12. JET_COLUMNID *pcolumnid )
  13. {
  14. return JET_errInternalError;
  15. }
  16. static
  17. JET_ERR JET_API JetAttachDatabase(
  18. JET_SESID sesid,
  19. const char *szFilename,
  20. JET_GRBIT grbit )
  21. {
  22. return JET_errInternalError;
  23. }
  24. static
  25. JET_ERR JET_API JetBeginSession(
  26. JET_INSTANCE instance,
  27. JET_SESID *psesid,
  28. const char *szUserName,
  29. const char *szPassword )
  30. {
  31. return JET_errInternalError;
  32. }
  33. static
  34. JET_ERR JET_API JetBeginTransaction(
  35. JET_SESID sesid )
  36. {
  37. return JET_errInternalError;
  38. }
  39. static
  40. JET_ERR JET_API JetCloseDatabase(
  41. JET_SESID sesid,
  42. JET_DBID dbid,
  43. JET_GRBIT grbit )
  44. {
  45. return JET_errInternalError;
  46. }
  47. static
  48. JET_ERR JET_API JetCloseTable(
  49. JET_SESID sesid, JET_TABLEID tableid )
  50. {
  51. return JET_errInternalError;
  52. }
  53. static
  54. JET_ERR JET_API JetCommitTransaction(
  55. JET_SESID sesid, JET_GRBIT grbit )
  56. {
  57. return JET_errInternalError;
  58. }
  59. static
  60. JET_ERR JET_API JetCreateDatabase(
  61. JET_SESID sesid,
  62. const char *szFilename,
  63. const char *szConnect,
  64. JET_DBID *pdbid,
  65. JET_GRBIT grbit )
  66. {
  67. return JET_errInternalError;
  68. }
  69. static
  70. JET_ERR JET_API JetCreateTableColumnIndex(
  71. JET_SESID sesid,
  72. JET_DBID dbid,
  73. JET_TABLECREATE *ptablecreate )
  74. {
  75. return JET_errInternalError;
  76. }
  77. static
  78. JET_ERR JET_API JetDelete(
  79. JET_SESID sesid, JET_TABLEID tableid )
  80. {
  81. return JET_errInternalError;
  82. }
  83. static
  84. JET_ERR JET_API JetDeleteTable(
  85. JET_SESID sesid,
  86. JET_DBID dbid,
  87. const char *szTableName )
  88. {
  89. return JET_errInternalError;
  90. }
  91. static
  92. JET_ERR JET_API JetDetachDatabase(
  93. JET_SESID sesid,
  94. const char *szFilename )
  95. {
  96. return JET_errInternalError;
  97. }
  98. static
  99. JET_ERR JET_API JetEndSession(
  100. JET_SESID sesid, JET_GRBIT grbit )
  101. {
  102. return JET_errInternalError;
  103. }
  104. static
  105. JET_ERR JET_API JetGetDatabaseInfo(
  106. JET_SESID sesid,
  107. JET_DBID dbid,
  108. void *pvResult,
  109. unsigned long cbMax,
  110. unsigned long InfoLevel )
  111. {
  112. return JET_errInternalError;
  113. }
  114. static
  115. JET_ERR JET_API JetGetTableColumnInfo(
  116. JET_SESID sesid,
  117. JET_TABLEID tableid,
  118. const char *szColumnName,
  119. void *pvResult,
  120. unsigned long cbMax,
  121. unsigned long InfoLevel )
  122. {
  123. return JET_errInternalError;
  124. }
  125. static
  126. JET_ERR JET_API JetIndexRecordCount(
  127. JET_SESID sesid,
  128. JET_TABLEID tableid,
  129. unsigned long *pcrec,
  130. unsigned long crecMax )
  131. {
  132. return JET_errInternalError;
  133. }
  134. static
  135. JET_ERR JET_API JetInit(
  136. JET_INSTANCE *pinstance)
  137. {
  138. return JET_errInternalError;
  139. }
  140. static
  141. JET_ERR JET_API JetMakeKey(
  142. JET_SESID sesid,
  143. JET_TABLEID tableid,
  144. const void *pvData,
  145. unsigned long cbData,
  146. JET_GRBIT grbit )
  147. {
  148. return JET_errInternalError;
  149. }
  150. static
  151. JET_ERR JET_API JetMove(
  152. JET_SESID sesid,
  153. JET_TABLEID tableid,
  154. long cRow,
  155. JET_GRBIT grbit )
  156. {
  157. return JET_errInternalError;
  158. }
  159. static
  160. JET_ERR JET_API JetOpenDatabase(
  161. JET_SESID sesid,
  162. const char *szFilename,
  163. const char *szConnect,
  164. JET_DBID *pdbid,
  165. JET_GRBIT grbit )
  166. {
  167. return JET_errInternalError;
  168. }
  169. static
  170. JET_ERR JET_API JetOpenTable(
  171. JET_SESID sesid,
  172. JET_DBID dbid,
  173. const char *szTableName,
  174. const void *pvParameters,
  175. unsigned long cbParameters,
  176. JET_GRBIT grbit,
  177. JET_TABLEID *ptableid )
  178. {
  179. return JET_errInternalError;
  180. }
  181. static
  182. JET_ERR JET_API JetPrepareUpdate(
  183. JET_SESID sesid,
  184. JET_TABLEID tableid,
  185. unsigned long prep )
  186. {
  187. return JET_errInternalError;
  188. }
  189. static
  190. JET_ERR JET_API JetResetSessionContext(
  191. JET_SESID sesid )
  192. {
  193. return JET_errInternalError;
  194. }
  195. static
  196. JET_ERR JET_API JetRetrieveColumn(
  197. JET_SESID sesid,
  198. JET_TABLEID tableid,
  199. JET_COLUMNID columnid,
  200. void *pvData,
  201. unsigned long cbData,
  202. unsigned long *pcbActual,
  203. JET_GRBIT grbit,
  204. JET_RETINFO *pretinfo )
  205. {
  206. return JET_errInternalError;
  207. }
  208. static
  209. JET_ERR JET_API JetRollback(
  210. JET_SESID sesid, JET_GRBIT grbit )
  211. {
  212. return JET_errInternalError;
  213. }
  214. static
  215. JET_ERR JET_API JetSeek(
  216. JET_SESID sesid,
  217. JET_TABLEID tableid,
  218. JET_GRBIT grbit )
  219. {
  220. return JET_errInternalError;
  221. }
  222. static
  223. JET_ERR JET_API JetSetColumn(
  224. JET_SESID sesid,
  225. JET_TABLEID tableid,
  226. JET_COLUMNID columnid,
  227. const void *pvData,
  228. unsigned long cbData,
  229. JET_GRBIT grbit,
  230. JET_SETINFO *psetinfo )
  231. {
  232. return JET_errInternalError;
  233. }
  234. static
  235. JET_ERR JET_API JetSetCurrentIndex(
  236. JET_SESID sesid,
  237. JET_TABLEID tableid,
  238. const char *szIndexName )
  239. {
  240. return JET_errInternalError;
  241. }
  242. static
  243. JET_ERR JET_API JetSetIndexRange(
  244. JET_SESID sesid,
  245. JET_TABLEID tableidSrc,
  246. JET_GRBIT grbit)
  247. {
  248. return JET_errInternalError;
  249. }
  250. static
  251. JET_ERR JET_API JetSetSessionContext(
  252. JET_SESID sesid,
  253. ULONG_PTR ulContext )
  254. {
  255. return JET_errInternalError;
  256. }
  257. static
  258. JET_ERR JET_API JetSetSystemParameter(
  259. JET_INSTANCE *pinstance,
  260. JET_SESID sesid,
  261. unsigned long paramid,
  262. ULONG_PTR lParam,
  263. const char *sz )
  264. {
  265. return JET_errInternalError;
  266. }
  267. static
  268. JET_ERR JET_API JetTerm(
  269. JET_INSTANCE instance )
  270. {
  271. return JET_errInternalError;
  272. }
  273. static
  274. JET_ERR JET_API JetTerm2(
  275. JET_INSTANCE instance,
  276. JET_GRBIT grbit )
  277. {
  278. return JET_errInternalError;
  279. }
  280. static
  281. JET_ERR JET_API JetUpdate(
  282. JET_SESID sesid,
  283. JET_TABLEID tableid,
  284. void *pvBookmark,
  285. unsigned long cbBookmark,
  286. unsigned long *pcbActual)
  287. {
  288. return JET_errInternalError;
  289. }
  290. //
  291. // !! WARNING !! The entries below must be in alphabetical order
  292. // and are CASE SENSITIVE (i.e., lower case comes last!)
  293. //
  294. DEFINE_PROCNAME_ENTRIES(esent)
  295. {
  296. DLPENTRY(JetAddColumn)
  297. DLPENTRY(JetAttachDatabase)
  298. DLPENTRY(JetBeginSession)
  299. DLPENTRY(JetBeginTransaction)
  300. DLPENTRY(JetCloseDatabase)
  301. DLPENTRY(JetCloseTable)
  302. DLPENTRY(JetCommitTransaction)
  303. DLPENTRY(JetCreateDatabase)
  304. DLPENTRY(JetCreateTableColumnIndex)
  305. DLPENTRY(JetDelete)
  306. DLPENTRY(JetDeleteTable)
  307. DLPENTRY(JetDetachDatabase)
  308. DLPENTRY(JetEndSession)
  309. DLPENTRY(JetGetDatabaseInfo)
  310. DLPENTRY(JetGetTableColumnInfo)
  311. DLPENTRY(JetIndexRecordCount)
  312. DLPENTRY(JetInit)
  313. DLPENTRY(JetMakeKey)
  314. DLPENTRY(JetMove)
  315. DLPENTRY(JetOpenDatabase)
  316. DLPENTRY(JetOpenTable)
  317. DLPENTRY(JetPrepareUpdate)
  318. DLPENTRY(JetResetSessionContext)
  319. DLPENTRY(JetRetrieveColumn)
  320. DLPENTRY(JetRollback)
  321. DLPENTRY(JetSeek)
  322. DLPENTRY(JetSetColumn)
  323. DLPENTRY(JetSetCurrentIndex)
  324. DLPENTRY(JetSetIndexRange)
  325. DLPENTRY(JetSetSessionContext)
  326. DLPENTRY(JetSetSystemParameter)
  327. DLPENTRY(JetTerm)
  328. DLPENTRY(JetTerm2)
  329. DLPENTRY(JetUpdate)
  330. };
  331. DEFINE_PROCNAME_MAP(esent)