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.

239 lines
6.7 KiB

  1. #undef ISAMAPI
  2. #define ISAMAPI
  3. #undef VTAPI
  4. #define VTAPI
  5. #undef VDBAPI
  6. #define VDBAPI
  7. typedef struct _pib PIB;
  8. typedef struct _fucb FUCB;
  9. #define ULONG unsigned long
  10. ERR VTAPI ErrIsamGetObjidFromName( JET_SESID sesid, JET_DBID vdbid, const char *lszCtrName, const char *lszObjName, OBJID *pobjid );
  11. ERR VTAPI ErrIsamCreateObject( JET_SESID sesid, JET_DBID vdbid, OBJID objidParentId, const char *szName, JET_OBJTYP objtyp );
  12. ERR VTAPI ErrIsamDeleteObject( JET_SESID sesid, JET_DBID vdbid, OBJID objid );
  13. ERR VTAPI ErrIsamRenameObject(
  14. JET_VSESID vsesid,
  15. JET_VDBID vdbid,
  16. const char *szContainerName,
  17. const char *szObjectName,
  18. const char *szObjectNameNew );
  19. ERR VDBAPI ErrIsamGetObjectInfo(
  20. JET_VSESID vsesid,
  21. JET_DBID dbid,
  22. JET_OBJTYP objtyp,
  23. const char *szContainerName,
  24. const char *szObjectName,
  25. VOID *pv,
  26. unsigned long cbMax,
  27. unsigned long lInfoLevel );
  28. ERR VTAPI ErrIsamGetTableInfo(
  29. JET_VSESID vsesid,
  30. JET_VTID vtid,
  31. void *pbOut,
  32. unsigned long cbOutMax,
  33. unsigned long lInfoLevel );
  34. ERR VDBAPI ErrIsamGetColumnInfo(
  35. JET_VSESID vsesid,
  36. JET_DBID vdbid,
  37. const char *szTable,
  38. const char *szColumnName,
  39. VOID *pv,
  40. unsigned long cbMax,
  41. unsigned long lInfoLevel );
  42. ERR VTAPI ErrIsamGetTableColumnInfo(
  43. JET_VSESID vsesid,
  44. JET_VTID vtid,
  45. const char *szColumn,
  46. void *pb,
  47. unsigned long cbMax,
  48. unsigned long lInfoLevel );
  49. ERR VDBAPI ErrIsamGetIndexInfo(
  50. JET_VSESID vsesid,
  51. JET_DBID vdbid,
  52. const char *szTable,
  53. const char *szIndexName,
  54. VOID *pv,
  55. unsigned long cbMax,
  56. unsigned long lInfoLevel );
  57. ERR VTAPI ErrIsamGetTableIndexInfo(
  58. JET_VSESID vsesid,
  59. JET_VTID vtid,
  60. const char *szIndex,
  61. void *pb,
  62. unsigned long cbMax,
  63. unsigned long lInfoLevel );
  64. ERR VDBAPI ErrIsamGetDatabaseInfo(
  65. JET_VSESID vsesid,
  66. JET_DBID vdbid,
  67. void *pv,
  68. unsigned long cbMax,
  69. unsigned long ulInfoLevel );
  70. ERR VTAPI ErrIsamGetSysTableColumnInfo(
  71. PIB *ppib,
  72. FUCB *pfucb,
  73. char *szColumnName,
  74. VOID *pv,
  75. unsigned long cbMax,
  76. long lInfoLevel );
  77. ERR VTAPI ErrIsamInfoRetrieveColumn(
  78. PIB *ppib,
  79. FUCB *pfucb,
  80. JET_COLUMNID columnid,
  81. void *pb,
  82. unsigned long cbMax,
  83. unsigned long *pcbActual,
  84. JET_GRBIT grbit,
  85. JET_RETINFO *pretinfo );
  86. ERR VTAPI ErrIsamInfoSetColumn(
  87. PIB *ppib,
  88. FUCB *pfucb,
  89. JET_COLUMNID columnid,
  90. const void *pbData,
  91. unsigned long cbData,
  92. JET_GRBIT grbit,
  93. JET_SETINFO *psetinfo );
  94. ERR VTAPI ErrIsamInfoUpdate(
  95. JET_VSESID vsesid,
  96. JET_VTID vtid,
  97. void *pb,
  98. unsigned long cbMax,
  99. unsigned long *pcbActual );
  100. ERR VTAPI ErrIsamGetCursorInfo(
  101. JET_VSESID vsesid,
  102. JET_VTID vtid,
  103. void *pvResult,
  104. unsigned long cbMax,
  105. unsigned long InfoLevel );
  106. ERR VTAPI ErrIsamGetRecordPosition(
  107. JET_VSESID vsesid,
  108. JET_VTID vtid,
  109. JET_RECPOS *precpos,
  110. unsigned long cbRecpos );
  111. ERR ISAMAPI ErrIsamRestore( CHAR *szRestoreFromPath, JET_PFNSTATUS pfn );
  112. ERR ISAMAPI ErrIsamRestore2( CHAR *szRestoreFromPath, CHAR *szDestPath, JET_PFNSTATUS pfn );
  113. ERR VTAPI ErrIsamMove( PIB *ppib, FUCB *pfucb, LONG crow, JET_GRBIT grbit );
  114. ERR VTAPI ErrIsamSeek( PIB *ppib, FUCB *pfucb, JET_GRBIT grbit );
  115. ERR VTAPI ErrIsamUpdate( PIB *ppib, FUCB *pfucb, BYTE *pb, ULONG cb, ULONG *cbActual );
  116. ERR VTAPI ErrIsamDelete( PIB *ppib, FUCB *pfucb );
  117. ERR VTAPI ErrIsamSetColumn(
  118. PIB *ppib,
  119. FUCB *pfucb,
  120. JET_COLUMNID columnid,
  121. BYTE *pbData,
  122. ULONG cbData,
  123. JET_GRBIT grbit,
  124. JET_SETINFO *psetinfo );
  125. ERR VTAPI ErrIsamSetColumns(
  126. JET_VSESID vsesid,
  127. JET_VTID vtid,
  128. JET_SETCOLUMN *psetcols,
  129. unsigned long csetcols );
  130. ERR VTAPI ErrIsamRetrieveColumn(
  131. PIB *ppib,
  132. FUCB *pfucb,
  133. JET_COLUMNID columnid,
  134. BYTE *pbData,
  135. ULONG cbDataMax,
  136. ULONG *pcbDataActual,
  137. JET_GRBIT grbit,
  138. JET_RETINFO *pretinfo );
  139. ERR VTAPI ErrIsamRetrieveColumns(
  140. JET_VSESID vsesid,
  141. JET_VTID vtid,
  142. JET_RETRIEVECOLUMN *pretcols,
  143. unsigned long cretcols );
  144. ERR VTAPI ErrIsamPrepareUpdate( PIB *ppib, FUCB *pfucb, JET_GRBIT grbit );
  145. ERR VTAPI ErrIsamDupCursor( PIB*, FUCB*, FUCB **, ULONG );
  146. ERR VTAPI ErrIsamGotoBookmark( PIB *ppib, FUCB *pfucb, BYTE *pbBookmark, ULONG cbBookmark );
  147. ERR VTAPI ErrIsamGotoPosition( PIB *ppib, FUCB *pfucb, JET_RECPOS *precpos );
  148. ERR VTAPI ErrIsamGetCurrentIndex( PIB *ppib, FUCB *pfucb, CHAR *szCurIdx, ULONG cbMax );
  149. ERR VTAPI ErrIsamSetCurrentIndex( PIB *ppib, FUCB *pfucb, const CHAR *szName );
  150. ERR VTAPI ErrIsamSetCurrentIndex2( JET_VSESID vsesid, JET_VTID vtid, const CHAR *szName, JET_GRBIT grbit );
  151. ERR VTAPI ErrIsamMakeKey( PIB *ppib, FUCB *pfucb, BYTE *pbKeySeg,
  152. ULONG cbKeySeg, JET_GRBIT grbit );
  153. ERR VTAPI ErrIsamRetrieveKey( PIB *ppib, FUCB *pfucb, BYTE *pbKey,
  154. ULONG cbMax, ULONG *pcbKeyActual, JET_GRBIT grbit );
  155. ERR VTAPI ErrIsamRetrieveBookmarks( PIB *ppib, FUCB *pfucb,
  156. void *pvBookmarks, unsigned long cbMax, unsigned long *pcbActual );
  157. ERR VTAPI ErrIsamSetIndexRange( PIB *ppib, FUCB *pfucb, JET_GRBIT grbit );
  158. ERR VTAPI ErrIsamComputeStats( PIB *ppib, FUCB *pfucb );
  159. ERR VTAPI ErrIsamCapability( JET_VSESID vsesid,
  160. JET_VDBID vdbid,
  161. ULONG ulArea,
  162. ULONG ulFunction,
  163. JET_GRBIT *pgrbitFeature );
  164. ERR ISAMAPI ErrIsamCloseDatabase( JET_VSESID sesid, JET_VDBID vdbid, JET_GRBIT grbit );
  165. ERR VTAPI ErrIsamCreateTable(
  166. JET_VSESID vsesid,
  167. JET_VDBID vdbid,
  168. JET_TABLECREATE *ptablecreate );
  169. ERR VTAPI ErrIsamDeleteTable( JET_VSESID vsesid, JET_VDBID vdbid, CHAR *szName );
  170. ERR VTAPI ErrIsamRenameTable( JET_VSESID vsesid, JET_VDBID vdbid, CHAR *szName, CHAR *szNameNew );
  171. ERR VTAPI ErrIsamOpenTable(
  172. JET_VSESID vsesid,
  173. JET_VDBID vdbid,
  174. JET_TABLEID *ptableid,
  175. CHAR *szPath,
  176. JET_GRBIT grbit );
  177. ERR VTAPI ErrIsamRenameColumn( PIB *ppib, FUCB *pfucb, CHAR *szName, CHAR *szNameNew );
  178. ERR VTAPI ErrIsamRenameIndex( PIB *ppib, FUCB *pfucb, CHAR *szName, CHAR *szNameNew );
  179. ERR VTAPI ErrIsamAddColumn(
  180. PIB *ppib,
  181. FUCB *pfucb,
  182. CHAR *szName,
  183. JET_COLUMNDEF *pcolumndef,
  184. BYTE *pbDefault,
  185. ULONG cbDefault,
  186. JET_COLUMNID *pcolumnid );
  187. ERR VTAPI ErrIsamCreateIndex(
  188. PIB *ppib,
  189. FUCB *pfucb,
  190. CHAR *szName,
  191. JET_GRBIT grbit,
  192. CHAR *szKey,
  193. ULONG cchKey,
  194. ULONG ulDensity );
  195. ERR VTAPI ErrIsamDeleteColumn( PIB *ppib, FUCB *pfucb, CHAR *szName);
  196. ERR VTAPI ErrIsamDeleteIndex( PIB *ppib, FUCB *pfucb, CHAR *szName );
  197. ERR VTAPI ErrIsamGetBookmark( PIB *ppib, FUCB *pfucb, BYTE *pb, ULONG cbMax, ULONG *pcbActual );
  198. ERR VTAPI ErrIsamCloseTable( PIB *ppib, FUCB *pfucb );
  199. ERR VTAPI ErrIsamVersion( PIB*, int*, int*, CHAR*, ULONG);
  200. ERR ISAMAPI ErrIsamTerm( JET_GRBIT grbit );
  201. ERR ISAMAPI ErrIsamInit( unsigned long itib );
  202.