source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/esent.h@ 1175

Last change on this file since 1175 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 74.5 KB
RevLine 
[1166]1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6#ifndef _INC_ESENT
7#define _INC_ESENT
8
9#include <_mingw_unicode.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#ifndef JET_VERSION
16# ifdef WINVER
17# define JET_VERSION WINVER
18# else
19# define JET_VERSION 0x0a00
20# endif
21#endif
22
23#ifndef JET_API
24#define JET_API __stdcall
25#endif
26
27#if defined(_WIN64)
28typedef unsigned __int64 JET_API_PTR;
29#elif !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && _MSC_VER >= 1300
30typedef __w64 unsigned long JET_API_PTR;
31#else
32typedef unsigned long JET_API_PTR;
33#endif
34
35#ifndef __WCHAR_DEFINED
36#define __WCHAR_DEFINED
37typedef wchar_t WCHAR;
38#endif
39
40typedef enum _JET_CBTYP {
41 JET_cbtypNull = 0x00000000,
42 JET_cbtypFinalize = 0x00000001,
43 JET_cbtypBeforeInsert = 0x00000002,
44 JET_cbtypAfterInsert = 0x00000004,
45 JET_cbtypBeforeReplace = 0x00000008,
46 JET_cbtypAfterReplace = 0x00000010,
47 JET_cbtypBeforeDelete = 0x00000020,
48 JET_cbtypAfterDelete = 0x00000040,
49 JET_cbtypUserDefinedDefaultValue = 0x00000080,
50 JET_cbtypOnlineDefragCompleted = 0x00000100,
51 JET_cbtypFreeCursorLS = 0x00000200,
52 JET_cbtypFreeTableLS = 0x00000400
53} JET_CBTYP;
54
55typedef enum _JET_COLTYP {
56 JET_coltypNil = 0,
57 JET_coltypBit,
58 JET_coltypUnsignedByte,
59 JET_coltypShort,
60 JET_coltypLong,
61 JET_coltypCurrency,
62 JET_coltypIEEESingle,
63 JET_coltypIEEEDouble,
64 JET_coltypDateTime,
65 JET_coltypBinary,
66 JET_coltypText,
67 JET_coltypLongBinary,
68 JET_coltypLongText,
69 JET_coltypSLV,
70#if (JET_VERSION >= 0x0600)
71 JET_coltypUnsignedLong,
72 JET_coltypLongLong,
73 JET_coltypGUID,
74 JET_coltypUnsignedShort,
75#endif
76 JET_coltypMax
77} JET_COLTYP;
78
79typedef enum _JET_OBJTYP {
80 JET_objtypNil = 0,
81 JET_objtypTable
82} JET_OBJTYP;
83
84typedef enum _JET_SNP {
85 JET_snpRepair = 2,
86 JET_snpCompact = 4,
87 JET_snpRestore = 8,
88 JET_snpBackup = 9,
89 JET_snpUpgrade = 10,
90 JET_snpScrub = 11,
91 JET_snpUpgradeRecordFormat = 12
92} JET_SNP;
93
94typedef enum _JET_SNT {
95 JET_sntBegin = 5,
96 JET_sntRequirements = 7,
97 JET_sntProgress = 0,
98 JET_sntComplete = 6,
99 JET_sntFail = 3
100} JET_SNT;
101
102#define JET_errSuccess 0
103#define JET_wrnRemainingVersions 321
104#define JET_wrnUniqueKey 345
105#define JET_wrnSeparateLongValue 406
106#define JET_wrnExistingLogFileHasBadSignature 558
107#define JET_wrnExistingLogFileIsNotContiguous 559
108#define JET_wrnSkipThisRecord 564
109#define JET_wrnTargetInstanceRunning 578
110#define JET_wrnDatabaseRepaired 595
111#define JET_wrnColumnNull 1004
112#define JET_wrnBufferTruncated 1006
113#define JET_wrnDatabaseAttached 1007
114#define JET_wrnSortOverflow 1009
115#define JET_wrnSeekNotEqual 1039
116#define JET_wrnRecordFoundGreater JET_wrnSeekNotEqual
117#define JET_wrnRecordFoundLess JET_wrnSeekNotEqual
118#define JET_wrnNoErrorInfo 1055
119#define JET_wrnNoIdleActivity 1058
120#define JET_wrnNoWriteLock 1067
121#define JET_wrnColumnSetNull 1068
122#define JET_wrnTableEmpty 1301
123#define JET_wrnTableInUseBySystem 1327
124#define JET_wrnCorruptIndexDeleted 1415
125#define JET_wrnColumnMaxTruncated 1512
126#define JET_wrnCopyLongValue 1520
127#define JET_wrnColumnSkipped 1531
128#define JET_wrnColumnNotLocal 1532
129#define JET_wrnColumnMoreTags 1533
130#define JET_wrnColumnTruncated 1534
131#define JET_wrnColumnPresent 1535
132#define JET_wrnColumnSingleValue 1536
133#define JET_wrnColumnDefault 1537
134#define JET_wrnDataHasChanged 1610
135#define JET_wrnKeyChanged 1618
136#define JET_wrnFileOpenReadOnly 1813
137#define JET_wrnIdleFull 1908
138#define JET_wrnDefragAlreadyRunning 2000
139#define JET_wrnDefragNotRunning 2001
140#define JET_wrnCallbackNotRegistered 2100
141#define JET_wrnNyi -1
142#define JET_errRfsFailure -100
143#define JET_errRfsNotArmed -101
144#define JET_errFileClose -102
145#define JET_errOutOfThreads -103
146#define JET_errTooManyIO -105
147#define JET_errTaskDropped -106
148#define JET_errInternalError -107
149#define JET_errDatabaseBufferDependenciesCorrupted -255
150#define JET_errPreviousVersion -322
151#define JET_errPageBoundary -323
152#define JET_errKeyBoundary -324
153#define JET_errBadPageLink -327
154#define JET_errBadBookmark -328
155#define JET_errNTSystemCallFailed -334
156#define JET_errBadParentPageLink -338
157#define JET_errSPAvailExtCacheOutOfSync -340
158#define JET_errSPAvailExtCorrupted -341
159#define JET_errSPAvailExtCacheOutOfMemory -342
160#define JET_errSPOwnExtCorrupted -343
161#define JET_errDbTimeCorrupted -344
162#define JET_errKeyTruncated -346
163#define JET_errKeyTooBig -408
164#define JET_errInvalidLoggedOperation -500
165#define JET_errLogFileCorrupt -501
166#define JET_errNoBackupDirectory -503
167#define JET_errBackupDirectoryNotEmpty -504
168#define JET_errBackupInProgress -505
169#define JET_errRestoreInProgress -506
170#define JET_errMissingPreviousLogFile -509
171#define JET_errLogWriteFail -510
172#define JET_errLogDisabledDueToRecoveryFailure -511
173#define JET_errCannotLogDuringRecoveryRedo -512
174#define JET_errLogGenerationMismatch -513
175#define JET_errBadLogVersion -514
176#define JET_errInvalidLogSequence -515
177#define JET_errLoggingDisabled -516
178#define JET_errLogBufferTooSmall -517
179#define JET_errLogSequenceEnd -519
180#define JET_errNoBackup -520
181#define JET_errInvalidBackupSequence -521
182#define JET_errBackupNotAllowedYet -523
183#define JET_errDeleteBackupFileFail -524
184#define JET_errMakeBackupDirectoryFail -525
185#define JET_errInvalidBackup -526
186#define JET_errRecoveredWithErrors -527
187#define JET_errMissingLogFile -528
188#define JET_errLogDiskFull -529
189#define JET_errBadLogSignature -530
190#define JET_errBadDbSignature -531
191#define JET_errBadCheckpointSignature -532
192#define JET_errCheckpointCorrupt -533
193#define JET_errMissingPatchPage -534
194#define JET_errBadPatchPage -535
195#define JET_errRedoAbruptEnded -536
196#define JET_errBadSLVSignature -537
197#define JET_errPatchFileMissing -538
198#define JET_errDatabaseLogSetMismatch -539
199#define JET_errDatabaseStreamingFileMismatch -540
200#define JET_errLogFileSizeMismatch -541
201#define JET_errCheckpointFileNotFound -542
202#define JET_errRequiredLogFilesMissing -543
203#define JET_errSoftRecoveryOnBackupDatabase -544
204#define JET_errLogFileSizeMismatchDatabasesConsistent -545
205#define JET_errLogSectorSizeMismatch -546
206#define JET_errLogSectorSizeMismatchDatabasesConsistent -547
207#define JET_errLogSequenceEndDatabasesConsistent -548
208#define JET_errStreamingDataNotLogged -549
209#define JET_errDatabaseDirtyShutdown -550
210#define JET_errDatabaseInconsistent JET_errDatabaseDirtyShutdown
211#define JET_errConsistentTimeMismatch -551
212#define JET_errDatabasePatchFileMismatch -552
213#define JET_errEndingRestoreLogTooLow -553
214#define JET_errStartingRestoreLogTooHigh -554
215#define JET_errGivenLogFileHasBadSignature -555
216#define JET_errGivenLogFileIsNotContiguous -556
217#define JET_errMissingRestoreLogFiles -557
218#define JET_errMissingFullBackup -560
219#define JET_errBadBackupDatabaseSize -561
220#define JET_errDatabaseAlreadyUpgraded -562
221#define JET_errDatabaseIncompleteUpgrade -563
222#define JET_errMissingCurrentLogFiles -565
223#define JET_errDbTimeTooOld -566
224#define JET_errDbTimeTooNew -567
225#define JET_errMissingFileToBackup -569
226#define JET_errLogTornWriteDuringHardRestore -570
227#define JET_errLogTornWriteDuringHardRecovery -571
228#define JET_errLogCorruptDuringHardRestore -573
229#define JET_errLogCorruptDuringHardRecovery -574
230#define JET_errMustDisableLoggingForDbUpgrade -575
231#define JET_errBadRestoreTargetInstance -577
232#define JET_errRecoveredWithoutUndo -579
233#define JET_errDatabasesNotFromSameSnapshot -580
234#define JET_errSoftRecoveryOnSnapshot -581
235#define JET_errUnicodeTranslationBufferTooSmall -601
236#define JET_errUnicodeTranslationFail -602
237#define JET_errUnicodeNormalizationNotSupported -603
238#define JET_errExistingLogFileHasBadSignature -610
239#define JET_errExistingLogFileIsNotContiguous -611
240#define JET_errLogReadVerifyFailure -612
241#define JET_errSLVReadVerifyFailure -613
242#define JET_errCheckpointDepthTooDeep -614
243#define JET_errRestoreOfNonBackupDatabase -615
244#define JET_errInvalidGrbit -900
245#define JET_errTermInProgress -1000
246#define JET_errFeatureNotAvailable -1001
247#define JET_errInvalidName -1002
248#define JET_errInvalidParameter -1003
249#define JET_errDatabaseFileReadOnly -1008
250#define JET_errInvalidDatabaseId -1010
251#define JET_errOutOfMemory -1011
252#define JET_errOutOfDatabaseSpace -1012
253#define JET_errOutOfCursors -1013
254#define JET_errOutOfBuffers -1014
255#define JET_errTooManyIndexes -1015
256#define JET_errTooManyKeys -1016
257#define JET_errRecordDeleted -1017
258#define JET_errReadVerifyFailure -1018
259#define JET_errPageNotInitialized -1019
260#define JET_errOutOfFileHandles -1020
261#define JET_errDiskIO -1022
262#define JET_errInvalidPath -1023
263#define JET_errInvalidSystemPath -1024
264#define JET_errInvalidLogDirectory -1025
265#define JET_errRecordTooBig -1026
266#define JET_errTooManyOpenDatabases -1027
267#define JET_errInvalidDatabase -1028
268#define JET_errNotInitialized -1029
269#define JET_errAlreadyInitialized -1030
270#define JET_errInitInProgress -1031
271#define JET_errFileAccessDenied -1032
272#define JET_errBufferTooSmall -1038
273#define JET_errTooManyColumns -1040
274#define JET_errContainerNotEmpty -1043
275#define JET_errInvalidFilename -1044
276#define JET_errInvalidBookmark -1045
277#define JET_errColumnInUse -1046
278#define JET_errInvalidBufferSize -1047
279#define JET_errColumnNotUpdatable -1048
280#define JET_errIndexInUse -1051
281#define JET_errLinkNotSupported -1052
282#define JET_errNullKeyDisallowed -1053
283#define JET_errNotInTransaction -1054
284#define JET_errTooManyActiveUsers -1059
285#define JET_errInvalidCountry -1061
286#define JET_errInvalidLanguageId -1062
287#define JET_errInvalidCodePage -1063
288#define JET_errInvalidLCMapStringFlags -1064
289#define JET_errVersionStoreEntryTooBig -1065
290#define JET_errVersionStoreOutOfMemoryAndCleanupTimedOut -1066
291#define JET_errVersionStoreOutOfMemory -1069
292#define JET_errCannotIndex -1071
293#define JET_errRecordNotDeleted -1072
294#define JET_errTooManyMempoolEntries -1073
295#define JET_errOutOfObjectIDs -1074
296#define JET_errOutOfLongValueIDs -1075
297#define JET_errOutOfAutoincrementValues -1076
298#define JET_errOutOfDbtimeValues -1077
299#define JET_errOutOfSequentialIndexValues -1078
300#define JET_errRunningInOneInstanceMode -1080
301#define JET_errRunningInMultiInstanceMode -1081
302#define JET_errSystemParamsAlreadySet -1082
303#define JET_errSystemPathInUse -1083
304#define JET_errLogFilePathInUse -1084
305#define JET_errTempPathInUse -1085
306#define JET_errInstanceNameInUse -1086
307#define JET_errInstanceUnavailable -1090
308#define JET_errDatabaseUnavailable -1091
309#define JET_errInstanceUnavailableDueToFatalLogDiskFull -1092
310#define JET_errOutOfSessions -1101
311#define JET_errWriteConflict -1102
312#define JET_errTransTooDeep -1103
313#define JET_errInvalidSesid -1104
314#define JET_errWriteConflictPrimaryIndex -1105
315#define JET_errInTransaction -1108
316#define JET_errRollbackRequired -1109
317#define JET_errTransReadOnly -1110
318#define JET_errSessionWriteConflict -1111
319#define JET_errRecordTooBigForBackwardCompatibility -1112
320#define JET_errCannotMaterializeForwardOnlySort -1113
321#define JET_errSesidTableIdMismatch -1114
322#define JET_errInvalidInstance -1115
323#define JET_errDatabaseDuplicate -1201
324#define JET_errDatabaseInUse -1202
325#define JET_errDatabaseNotFound -1203
326#define JET_errDatabaseInvalidName -1204
327#define JET_errDatabaseInvalidPages -1205
328#define JET_errDatabaseCorrupted -1206
329#define JET_errDatabaseLocked -1207
330#define JET_errCannotDisableVersioning -1208
331#define JET_errInvalidDatabaseVersion -1209
332#define JET_errDatabase200Format -1210
333#define JET_errDatabase400Format -1211
334#define JET_errDatabase500Format -1212
335#define JET_errPageSizeMismatch -1213
336#define JET_errTooManyInstances -1214
337#define JET_errDatabaseSharingViolation -1215
338#define JET_errAttachedDatabaseMismatch -1216
339#define JET_errDatabaseInvalidPath -1217
340#define JET_errDatabaseIdInUse -1218
341#define JET_errForceDetachNotAllowed -1219
342#define JET_errCatalogCorrupted -1220
343#define JET_errPartiallyAttachedDB -1221
344#define JET_errDatabaseSignInUse -1222
345#define JET_errDatabaseCorruptedNoRepair -1224
346#define JET_errInvalidCreateDbVersion -1225
347#define JET_errTableLocked -1302
348#define JET_errTableDuplicate -1303
349#define JET_errTableInUse -1304
350#define JET_errObjectNotFound -1305
351#define JET_errDensityInvalid -1307
352#define JET_errTableNotEmpty -1308
353#define JET_errInvalidTableId -1310
354#define JET_errTooManyOpenTables -1311
355#define JET_errIllegalOperation -1312
356#define JET_errTooManyOpenTablesAndCleanupTimedOut -1313
357#define JET_errObjectDuplicate -1314
358#define JET_errInvalidObject -1316
359#define JET_errCannotDeleteTempTable -1317
360#define JET_errCannotDeleteSystemTable -1318
361#define JET_errCannotDeleteTemplateTable -1319
362#define JET_errExclusiveTableLockRequired -1322
363#define JET_errFixedDDL -1323
364#define JET_errFixedInheritedDDL -1324
365#define JET_errCannotNestDDL -1325
366#define JET_errDDLNotInheritable -1326
367#define JET_errInvalidSettings -1328
368#define JET_errClientRequestToStopJetService -1329
369#define JET_errCannotAddFixedVarColumnToDerivedTable -1330
370#define JET_errIndexCantBuild -1401
371#define JET_errIndexHasPrimary -1402
372#define JET_errIndexDuplicate -1403
373#define JET_errIndexNotFound -1404
374#define JET_errIndexMustStay -1405
375#define JET_errIndexInvalidDef -1406
376#define JET_errInvalidCreateIndex -1409
377#define JET_errTooManyOpenIndexes -1410
378#define JET_errMultiValuedIndexViolation -1411
379#define JET_errIndexBuildCorrupted -1412
380#define JET_errPrimaryIndexCorrupted -1413
381#define JET_errSecondaryIndexCorrupted -1414
382#define JET_errInvalidIndexId -1416
383#define JET_errIndexTuplesSecondaryIndexOnly -1430
384#define JET_errIndexTuplesTooManyColumns -1431
385#define JET_errIndexTuplesNonUniqueOnly -1432
386#define JET_errIndexTuplesTextBinaryColumnsOnly -1433
387#define JET_errIndexTuplesVarSegMacNotAllowed -1434
388#define JET_errIndexTuplesInvalidLimits -1435
389#define JET_errIndexTuplesCannotRetrieveFromIndex -1436
390#define JET_errIndexTuplesKeyTooSmall -1437
391#define JET_errColumnLong -1501
392#define JET_errColumnNoChunk -1502
393#define JET_errColumnDoesNotFit -1503
394#define JET_errNullInvalid -1504
395#define JET_errColumnIllegalNull JET_errNullInvalid
396#define JET_errColumnIndexed -1505
397#define JET_errColumnTooBig -1506
398#define JET_errColumnNotFound -1507
399#define JET_errColumnDuplicate -1508
400#define JET_errMultiValuedColumnMustBeTagged -1509
401#define JET_errColumnRedundant -1510
402#define JET_errInvalidColumnType -1511
403#define JET_errTaggedNotNULL -1514
404#define JET_errNoCurrentIndex -1515
405#define JET_errKeyIsMade -1516
406#define JET_errBadColumnId -1517
407#define JET_errBadItagSequence -1518
408#define JET_errColumnInRelationship -1519
409#define JET_errCannotBeTagged -1521
410#define JET_errDefaultValueTooBig -1524
411#define JET_errMultiValuedDuplicate -1525
412#define JET_errLVCorrupted -1526
413#define JET_errMultiValuedDuplicateAfterTruncation -1528
414#define JET_errDerivedColumnCorruption -1529
415#define JET_errInvalidPlaceholderColumn -1530
416#define JET_errRecordNotFound -1601
417#define JET_errRecordNoCopy -1602
418#define JET_errNoCurrentRecord -1603
419#define JET_errRecordPrimaryChanged -1604
420#define JET_errKeyDuplicate -1605
421#define JET_errAlreadyPrepared -1607
422#define JET_errKeyNotMade -1608
423#define JET_errUpdateNotPrepared -1609
424#define JET_errDataHasChanged -1611
425#define JET_errLanguageNotSupported -1619
426#define JET_errTooManySorts -1701
427#define JET_errInvalidOnSort -1702
428#define JET_errTempFileOpenError -1803
429#define JET_errTooManyAttachedDatabases -1805
430#define JET_errDiskFull -1808
431#define JET_errPermissionDenied -1809
432#define JET_errFileNotFound -1811
433#define JET_errFileInvalidType -1812
434#define JET_errAfterInitialization -1850
435#define JET_errLogCorrupted -1852
436#define JET_errInvalidOperation -1906
437#define JET_errAccessDenied -1907
438#define JET_errTooManySplits -1909
439#define JET_errSessionSharingViolation -1910
440#define JET_errEntryPointNotFound -1911
441#define JET_errSessionContextAlreadySet -1912
442#define JET_errSessionContextNotSetByThisThread -1913
443#define JET_errSessionInUse -1914
444#define JET_errRecordFormatConversionFailed -1915
445#define JET_errOneDatabasePerSession -1916
446#define JET_errRollbackError -1917
447#define JET_errCallbackFailed -2101
448#define JET_errCallbackNotResolved -2102
449#define JET_errOSSnapshotInvalidSequence -2401
450#define JET_errOSSnapshotTimeOut -2402
451#define JET_errOSSnapshotNotAllowed -2403
452#define JET_errOSSnapshotInvalidSnapId -2404
453#define JET_errLSCallbackNotSpecified -3000
454#define JET_errLSAlreadySet -3001
455#define JET_errLSNotSet -3002
456#define JET_errFileIOSparse -4000
457#define JET_errFileIOBeyondEOF -4001
458#define JET_errFileIOAbort -4002
459#define JET_errFileIORetry -4003
460#define JET_errFileIOFail -4004
461#define JET_errFileCompressed -4005
462
463#define JET_ExceptionMsgBox 0x0001
464#define JET_ExceptionNone 0x0002
465
466#define JET_EventLoggingDisable 0
467#define JET_EventLoggingLevelMax 100
468
469#define JET_instanceNil (~(JET_INSTANCE)0)
470#define JET_sesidNil (~(JET_SESID)0)
471#define JET_tableidNil (~(JET_TABLEID)0)
472#define JET_bitNil ((JET_GRBIT)0)
473#define JET_LSNil (~(JET_LS)0)
474#define JET_dbidNil ((JET_DBID) 0xFFFFFFFF)
475
476#define JET_BASE_NAME_LENGTH 3
477#define JET_MAX_COMPUTERNAME_LENGTH 15
478
479#define JET_bitDbReadOnly 0x00000001
480#define JET_bitDbExclusive 0x00000002
481#define JET_bitDbDeleteCorruptIndexes 0x00000010
482#if (JET_VERSION >= 0x0502)
483#define JET_bitDbDeleteUnicodeIndexes 0x00000400
484#endif
485#if (JET_VERSION >= 0x0501)
486#define JET_bitDbUpgrade 0x00000200
487#endif
488#if (JET_VERSION >= 0x0601)
489#define JET_bitDbEnableBackgroundMaintenance 0x00000800
490#endif
491#if (JET_VERSION >= 0x0602)
492#define JET_bitDbPurgeCacheOnAttach 0x00001000
493#endif
494
495#define JET_bitTableDenyWrite 0x00000001
496#define JET_bitTableDenyRead 0x00000002
497#define JET_bitTableReadOnly 0x00000004
498#define JET_bitTableUpdatable 0x00000008
499#define JET_bitTablePermitDDL 0x00000010
500#define JET_bitTableNoCache 0x00000020
501#define JET_bitTablePreread 0x00000040
502#define JET_bitTableOpportuneRead 0x00000080
503#define JET_bitTableSequential 0x00008000
504#define JET_bitTableClassMask 0x000f0000
505#define JET_bitTableClassNone 0x00000000
506#define JET_bitTableClass1 0x00010000
507#define JET_bitTableClass2 0x00020000
508#define JET_bitTableClass3 0x00030000
509#define JET_bitTableClass4 0x00040000
510#define JET_bitTableClass5 0x00050000
511#define JET_bitTableClass6 0x00060000
512#define JET_bitTableClass7 0x00070000
513#define JET_bitTableClass8 0x00080000
514#define JET_bitTableClass9 0x00090000
515#define JET_bitTableClass10 0x000a0000
516#define JET_bitTableClass11 0x000b0000
517#define JET_bitTableClass12 0x000c0000
518#define JET_bitTableClass13 0x000d0000
519#define JET_bitTableClass14 0x000e0000
520#define JET_bitTableClass15 0x000f0000
521
522#define JET_ColInfo 0u
523#define JET_ColInfoList 1u
524#define JET_ColInfoSysTabCursor 3u
525#define JET_ColInfoBase 4u
526#define JET_ColInfoListCompact 5u
527#if (JET_VERSION >= 0x0501)
528#define JET_ColInfoByColid 6u
529#define JET_ColInfoListSortColumnid 7u
530#endif
531#if (JET_VERSION >= 0x0600)
532#define JET_ColInfoBaseByColid 8u
533#define JET_ColInfoGrbitNonDerivedColumnsOnly 0x80000000
534#define JET_ColInfoGrbitMinimalInfo 0x40000000
535#define JET_ColInfoGrbitSortByColumnid 0x20000000
536#endif
537
538#define JET_MoveFirst (0x80000000)
539#define JET_MovePrevious (-1)
540#define JET_MoveNext (+1)
541#define JET_MoveLast (0x7fffffff)
542
543#define JET_cbBookmarkMost 256
544#if UNICODE
545#define JET_cbNameMost 128
546#define JET_cbFullNameMost 510
547#else
548#define JET_cbNameMost 64
549#define JET_cbFullNameMost 255
550#endif
551#define JET_cbColumnLVPageOverhead 82
552#define JET_cbColumnMost 255
553#define JET_cbLVDefaultValueMost 255
554#define JET_cbKeyMost 255
555#if (JET_VERSION >= 0x0600)
556#define JET_cbKeyMost2KBytePage 500
557#define JET_cbKeyMost4KBytePage 1000
558#define JET_cbKeyMost8KBytePage 2000
559#define JET_cbKeyMostMin 255
560#define JET_ccolKeyMost 12
561#endif /*(JET_VERSION >= 0x0600)*/
562#define JET_cbLimitKeyMost 256
563#define JET_cbPrimaryKeyMost 255
564#define JET_cbSecondaryKeyMost 255
565#if (JET_VERSION == 0x500)
566#define JET_ccolMost 0x00007ffe
567#else
568#define JET_ccolMost 0x0000fee0
569#endif /*(JET_VERSION == 0x500)*/
570#define JET_ccolFixedMost 0x0000007f
571#define JET_ccolVarMost 0x00000080
572#define JET_ccolTaggedMost ( JET_ccolMost - 0x000000ff ) /*64993*/
573
574#define JET_DbInfoFilename 0
575#define JET_DbInfoConnect 1
576#define JET_DbInfoCountry 2
577#define JET_DbInfoLCID 3
578#define JET_DbInfoLangid 3
579#define JET_DbInfoCp 4
580#define JET_DbInfoCollate 5
581#define JET_DbInfoOptions 6
582#define JET_DbInfoTransactions 7
583#define JET_DbInfoVersion 8
584#define JET_DbInfoIsam 9
585#define JET_DbInfoFilesize 10
586#define JET_DbInfoSpaceOwned 11
587#define JET_DbInfoSpaceAvailable 12
588#define JET_DbInfoUpgrade 13
589#define JET_DbInfoMisc 14
590#define JET_DbInfoDBInUse 15
591#define JET_DbInfoPageSize 17
592#define JET_DbInfoFileType 19
593#define JET_DbInfoFilesizeOnDisk 21
594
595#define JET_paramSystemPath 0
596#define JET_paramTempPath 1
597#define JET_paramLogFilePath 2
598#define JET_paramBaseName 3
599#define JET_paramEventSource 4
600#define JET_paramMaxSessions 5
601#define JET_paramMaxOpenTables 6
602#define JET_paramPreferredMaxOpenTables 7
603#if (JET_VERSION >= 0x0600)
604#define JET_paramCachedClosedTables 125
605#endif
606#define JET_paramMaxCursors 8
607#define JET_paramMaxVerPages 9
608#define JET_paramPreferredVerPages 63
609#if (JET_VERSION >= 0x0501)
610#define JET_paramGlobalMinVerPages 81
611#define JET_paramVersionStoreTaskQueueMax 105
612#endif
613#define JET_paramMaxTemporaryTables 10
614#define JET_paramLogFileSize 11
615#define JET_paramLogBuffers 12
616#define JET_paramWaitLogFlush 13
617#define JET_paramLogCheckpointPeriod 14
618#define JET_paramLogWaitingUserMax 15
619#define JET_paramCommitDefault 16
620#define JET_paramCircularLog 17
621#define JET_paramDbExtensionSize 18
622#define JET_paramPageTempDBMin 19
623#define JET_paramPageFragment 20
624#if (JET_VERSION >= 0x0600)
625#define JET_paramEnableFileCache 126
626#define JET_paramVerPageSize 128
627#define JET_paramConfiguration 129
628#define JET_paramEnableAdvanced 130
629#define JET_paramMaxColtyp 131
630#endif
631#define JET_paramBatchIOBufferMax 22
632#define JET_paramCacheSize 41
633#define JET_paramCacheSizeMin 60
634#define JET_paramCacheSizeMax 23
635#define JET_paramCheckpointDepthMax 24
636#define JET_paramLRUKCorrInterval 25
637#define JET_paramLRUKHistoryMax 26
638#define JET_paramLRUKPolicy 27
639#define JET_paramLRUKTimeout 28
640#define JET_paramLRUKTrxCorrInterval 29
641#define JET_paramOutstandingIOMax 30
642#define JET_paramStartFlushThreshold 31
643#define JET_paramStopFlushThreshold 32
644#if (JET_VERSION >= 0x0600)
645#define JET_paramEnableViewCache 127
646#define JET_paramCheckpointIOMax 135
647#define JET_paramTableClass1Name 137
648#define JET_paramTableClass2Name 138
649#define JET_paramTableClass3Name 139
650#define JET_paramTableClass4Name 140
651#define JET_paramTableClass5Name 141
652#define JET_paramTableClass6Name 142
653#define JET_paramTableClass7Name 143
654#define JET_paramTableClass8Name 144
655#define JET_paramTableClass9Name 145
656#define JET_paramTableClass10Name 146
657#define JET_paramTableClass11Name 147
658#define JET_paramTableClass12Name 148
659#define JET_paramTableClass13Name 149
660#define JET_paramTableClass14Name 150
661#define JET_paramTableClass15Name 151
662#endif
663#define JET_paramIOPriority 152
664#define JET_paramRecovery 34
665#define JET_paramEnableOnlineDefrag 35
666#define JET_paramCheckFormatWhenOpenFail 44
667#define JET_paramEnableTempTableVersioning 46
668#define JET_paramIgnoreLogVersion 47
669#define JET_paramDeleteOldLogs 48
670#define JET_paramEventSourceKey 49
671#define JET_paramNoInformationEvent 50
672#if (JET_VERSION >= 0x0501)
673#define JET_paramEventLoggingLevel 51
674#define JET_paramDeleteOutOfRangeLogs 52
675#define JET_paramAccessDeniedRetryPeriod 53
676#endif
677#define JET_paramEnableIndexChecking 45
678#if (JET_VERSION >= 0x0502)
679#define JET_paramEnableIndexCleanup 54
680#endif
681#define JET_paramDatabasePageSize 64
682#if (JET_VERSION >= 0x0501)
683#define JET_paramDisableCallbacks 65
684#endif
685#if (JET_VERSION >= 0x0501)
686#define JET_paramLogFileCreateAsynch 69
687#endif
688#define JET_paramErrorToString 70
689#if (JET_VERSION >= 0x0501)
690#define JET_paramZeroDatabaseDuringBackup 71
691#endif
692#define JET_paramUnicodeIndexDefault 72
693#if (JET_VERSION >= 0x0501)
694#define JET_paramRuntimeCallback 73
695#endif
696#define JET_paramCleanupMismatchedLogFiles 77
697#if (JET_VERSION >= 0x0501)
698#define JET_paramRecordUpgradeDirtyLevel 78
699#define JET_paramOSSnapshotTimeout 82
700#endif
701#define JET_paramExceptionAction 98
702#define JET_paramEventLogCache 99
703#if (JET_VERSION >= 0x0501)
704#define JET_paramCreatePathIfNotExist 100
705#define JET_paramPageHintCacheSize 101
706#define JET_paramOneDatabasePerSession 102
707#define JET_paramMaxInstances 104
708#define JET_paramDisablePerfmon 107
709#define JET_paramIndexTuplesLengthMin 110
710#define JET_paramIndexTuplesLengthMax 111
711#define JET_paramIndexTuplesToIndexMax 112
712#endif
713#if (JET_VERSION >= 0x0502)
714#define JET_paramAlternateDatabaseRecoveryPath 113
715#endif
716#if (JET_VERSION >= 0x0600)
717#define JET_paramIndexTupleIncrement 132
718#define JET_paramIndexTupleStart 133
719#define JET_paramKeyMost 134
720#define JET_paramLegacyFileNames 136
721#define JET_paramEnablePersistedCallbacks 156
722#endif
723#if (JET_VERSION >= 0x0601)
724#define JET_paramWaypointLatency 153
725#define JET_paramDefragmentSequentialBTrees 160
726#define JET_paramDefragmentSequentialBTreesDensityCheckFrequency 161
727#define JET_paramIOThrottlingTimeQuanta 162
728#define JET_paramLVChunkSizeMost 163
729#define JET_paramMaxCoalesceReadSize 164
730#define JET_paramMaxCoalesceWriteSize 165
731#define JET_paramMaxCoalesceReadGapSize 166
732#define JET_paramMaxCoalesceWriteGapSize 167
733#define JET_paramEnableDBScanInRecovery 169
734#define JET_paramDbScanThrottle 170
735#define JET_paramDbScanIntervalMinSec 171
736#define JET_paramDbScanIntervalMaxSec 172
737#endif
738#if (JET_VERSION >= 0x0602)
739#define JET_paramCachePriority 177
740#define JET_paramMaxTransactionSize 178
741#define JET_paramPrereadIOMax 179
742#define JET_paramEnableDBScanSerialization 180
743#define JET_paramHungIOThreshold 181
744#define JET_paramHungIOActions 182
745#define JET_paramMinDataForXpress 183
746#endif
747#if (JET_VERSION >= 0x0603)
748#define JET_paramEnableShrinkDatabase 184
749#endif
750#if (JET_VERSION >= 0x0602)
751#define JET_paramProcessFriendlyName 186
752#define JET_paramDurableCommitCallback 187
753#endif
754#if (JET_VERSION >= 0x0603)
755#define JET_paramEnableSqm 188
756#endif
757#if (JET_VERSION >= 0x0a00)
758#define JET_paramConfigStoreSpec 189
759#endif
760#define JET_paramMaxValueInvalid 193
761#define JET_sesparamCommitDefault 4097
762#if (JET_VERSION >= 0x0a00)
763#define JET_sesparamTransactionLevel 4099
764#define JET_sesparamOperationContext 4100
765#define JET_sesparamCorrelationID 4101
766#define JET_sesparamMaxValueInvalid 4102
767#endif
768
769typedef unsigned __LONG32 JET_COLUMNID;
770typedef double JET_DATESERIAL;
771typedef unsigned __LONG32 JET_DBID;
772typedef __LONG32 JET_ERR;
773typedef unsigned __LONG32 JET_GRBIT;
774typedef JET_API_PTR JET_HANDLE;
775typedef JET_API_PTR JET_INSTANCE;
776typedef JET_API_PTR JET_LS;
777typedef JET_API_PTR JET_OSSNAPID;
778typedef const char * JET_PCSTR; /*__nullterminated*/
779typedef const WCHAR * JET_PCWSTR;/*__nullterminated*/
780typedef char * JET_PSTR; /*__nullterminated*/
781typedef WCHAR * JET_PWSTR; /*__nullterminated*/
782typedef JET_API_PTR JET_SESID;
783typedef JET_API_PTR JET_TABLEID;
784
785typedef struct _JET_ENUMCOLUMNVALUE JET_ENUMCOLUMNVALUE;
786
787typedef struct _JET_LGPOS {
788 unsigned short ib;
789 unsigned short isec;
790 __LONG32 lGeneration;
791} JET_LGPOS;
792
793typedef struct _JET_LOGTIME {
794 char bSeconds;
795 char bMinutes;
796 char bHours;
797 char bDay;
798 char bMonth;
799 char bYear;
800 char bFiller1;
801 char bFiller2;
802} JET_LOGTIME;
803
804typedef struct _JET_BKLOGTIME {
805 char bSeconds;
806 char bMinutes;
807 char bHours;
808 char bDay;
809 char bMonth;
810 char bYear;
811 char bFiller1;
812 __C89_NAMELESS union {
813 char bFiller2;
814 __C89_NAMELESS struct {
815 unsigned char fOSSnapshot :1;
816 unsigned char fReserved :7;
817 };
818 };
819} JET_BKLOGTIME;
820
821typedef struct _JET_SIGNATURE {
822 unsigned __LONG32 ulRandom;
823 JET_LOGTIME logtimeCreate;
824 char szComputerName[JET_MAX_COMPUTERNAME_LENGTH + 1];
825} JET_SIGNATURE;
826
827typedef struct tagJET_UNICODEINDEX {
828 unsigned __LONG32 lcid;
829 unsigned __LONG32 dwMapFlags;
830} JET_UNICODEINDEX;
831
832typedef struct tagJET_TUPLELIMITS {
833 unsigned __LONG32 chLengthMin;
834 unsigned __LONG32 chLengthMax;
835 unsigned __LONG32 chToIndexMax;
836 unsigned __LONG32 cchIncrement;
837 unsigned __LONG32 ichStart;
838} JET_TUPLELIMITS;
839
840typedef struct _JET_BKINFO {
841 JET_LGPOS lgposMark;
842 __C89_NAMELESS union {
843 JET_LOGTIME logtimeMark;
844 JET_BKLOGTIME bklogtimeMark;
845 };
846 unsigned __LONG32 genLow;
847 unsigned __LONG32 genHigh;
848} JET_BKINFO;
849
850typedef struct _JET_COLUMNBASE_A{
851 unsigned __LONG32 cbStruct;
852 JET_COLUMNID columnid;
853 JET_COLTYP coltyp;
854 unsigned short wCountry;
855 unsigned short langid;
856 unsigned short cp;
857 unsigned short wFiller;
858 unsigned __LONG32 cbMax;
859 JET_GRBIT grbit;
860 char szBaseTableName[256];
861 char szBaseColumnName[256];
862} JET_COLUMNBASE_A;
863
864typedef struct _JET_COLUMNBASE_W{
865 unsigned __LONG32 cbStruct;
866 JET_COLUMNID columnid;
867 JET_COLTYP coltyp;
868 unsigned short wCountry;
869 unsigned short langid;
870 unsigned short cp;
871 unsigned short wFiller;
872 unsigned __LONG32 cbMax;
873 JET_GRBIT grbit;
874 WCHAR szBaseTableName[256];
875 WCHAR szBaseColumnName[256];
876} JET_COLUMNBASE_W;
877
878#define JET_COLUMNBASE __MINGW_NAME_AW(JET_COLUMNBASE_)
879
880typedef struct tag_JET_COLUMNCREATE_A {
881 unsigned __LONG32 cbStruct;
882 char* szColumnName;
883 JET_COLTYP coltyp;
884 unsigned __LONG32 cbMax;
885 JET_GRBIT grbit;
886 void* pvDefault;
887 unsigned __LONG32 cbDefault;
888 unsigned __LONG32 cp;
889 JET_COLUMNID columnid;
890 JET_ERR err;
891} JET_COLUMNCREATE_A;
892
893typedef struct tag_JET_COLUMNCREATE_W {
894 unsigned __LONG32 cbStruct;
895 WCHAR* szColumnName;
896 JET_COLTYP coltyp;
897 unsigned __LONG32 cbMax;
898 JET_GRBIT grbit;
899 void* pvDefault;
900 unsigned __LONG32 cbDefault;
901 unsigned __LONG32 cp;
902 JET_COLUMNID columnid;
903 JET_ERR err;
904} JET_COLUMNCREATE_W;
905
906#define JET_COLUMNCREATE __MINGW_NAME_AW(JET_COLUMNCREATE_)
907
908typedef struct _JET_COLUMNDEF {
909 unsigned __LONG32 cbStruct;
910 JET_COLUMNID columnid;
911 JET_COLTYP coltyp;
912 unsigned short wCountry;
913 unsigned short langid;
914 unsigned short cp;
915 unsigned short wCollate;
916 unsigned __LONG32 cbMax;
917 JET_GRBIT grbit;
918} JET_COLUMNDEF;
919
920typedef struct _JET_COLUMNLIST {
921 unsigned __LONG32 cbStruct;
922 JET_TABLEID tableid;
923 unsigned __LONG32 cRecord;
924 JET_COLUMNID columnidPresentationOrder;
925 JET_COLUMNID columnidcolumnname;
926 JET_COLUMNID columnidcolumnid;
927 JET_COLUMNID columnidcoltyp;
928 JET_COLUMNID columnidCountry;
929 JET_COLUMNID columnidLangid;
930 JET_COLUMNID columnidCp;
931 JET_COLUMNID columnidCollate;
932 JET_COLUMNID columnidcbMax;
933 JET_COLUMNID columnidgrbit;
934 JET_COLUMNID columnidDefault;
935 JET_COLUMNID columnidBaseTableName;
936 JET_COLUMNID columnidBaseColumnName;
937 JET_COLUMNID columnidDefinitionName;
938} JET_COLUMNLIST;
939
940typedef struct tagJET_CONDITIONALCOLUMN_A {
941 unsigned __LONG32 cbStruct;
942 char* szColumnName;
943 JET_GRBIT grbit;
944} JET_CONDITIONALCOLUMN_A;
945
946typedef struct tagJET_CONDITIONALCOLUMN_W {
947 unsigned __LONG32 cbStruct;
948 WCHAR* szColumnName;
949 JET_GRBIT grbit;
950} JET_CONDITIONALCOLUMN_W;
951
952#define JET_CONDITIONALCOLUMN __MINGW_NAME_AW(JET_CONDITIONALCOLUMN_)
953
954typedef struct tagCONVERT_A {
955 char* SzOldDll;
956 __C89_NAMELESS union {
957 unsigned __LONG32 fFlags;
958 __C89_NAMELESS struct {
959 unsigned __LONG32 fSchemaChangesOnly :1;
960 };
961 };
962} JET_CONVERT_A;
963
964typedef struct tagCONVERT_W {
965 WCHAR* SzOldDll;
966 __C89_NAMELESS union {
967 unsigned __LONG32 fFlags;
968 __C89_NAMELESS struct {
969 unsigned __LONG32 fSchemaChangesOnly :1;
970 };
971 };
972} JET_CONVERT_W;
973
974#define JET_CONVERT __MINGW_NAME_AW(JET_CONVERT_)
975
976#define JET_dbstateJustCreated 1
977#define JET_dbstateDirtyShutdown 2
978#define JET_dbstateCleanShutdown 3
979#define JET_dbstateBeingConverted 4
980#define JET_dbstateForceDetach 5
981
982typedef struct _JET_DBINFOMISC {
983 unsigned __LONG32 ulVersion;
984 unsigned __LONG32 ulUpdate;
985 JET_SIGNATURE signDb;
986 unsigned __LONG32 dbstate;
987 JET_LGPOS lgposConsistent;
988 JET_LOGTIME logtimeConsistent;
989 JET_LOGTIME logtimeAttach;
990 JET_LGPOS lgposAttach;
991 JET_LOGTIME logtimeDetach;
992 JET_LGPOS lgposDetach;
993 JET_SIGNATURE signLog;
994 JET_BKINFO bkinfoFullPrev;
995 JET_BKINFO bkinfoIncPrev;
996 JET_BKINFO bkinfoFullCur;
997 unsigned __LONG32 fShadowingDisabled;
998 unsigned __LONG32 fUpgradeDb;
999 unsigned __LONG32 dwMajorVersion;
1000 unsigned __LONG32 dwMinorVersion;
1001 unsigned __LONG32 dwBuildNumber;
1002 __LONG32 lSPNumber;
1003 unsigned __LONG32 cbPageSize;
1004} JET_DBINFOMISC;
1005
1006typedef struct _JET_DBINFOUPGRADE {
1007 unsigned __LONG32 cbStruct;
1008 unsigned __LONG32 cbFilesizeLow;
1009 unsigned __LONG32 cbFilesizeHigh;
1010 unsigned __LONG32 cbFreeSpaceRequiredLow;
1011 unsigned __LONG32 cbFreeSpaceRequiredHigh;
1012 unsigned __LONG32 csecToUpgrade;
1013 __C89_NAMELESS union {
1014 unsigned __LONG32 ulFlags;
1015 __C89_NAMELESS struct {
1016 unsigned __LONG32 fUpgradable :1;
1017 unsigned __LONG32 fAlreadyUpgraded :1;
1018 };
1019 };
1020} JET_DBINFOUPGRADE;
1021
1022typedef struct _JET_ENUMCOLUMNVALUE {
1023 unsigned __LONG32 itagSequence;
1024 JET_ERR err;
1025 unsigned __LONG32 cbData;
1026 void* pvData;
1027} JET_ENUMCOLUMNVALUE;
1028
1029typedef struct _JET_ENUMCOLUMN {
1030 JET_COLUMNID columnid;
1031 JET_ERR err;
1032 __C89_NAMELESS union {
1033 __C89_NAMELESS struct {
1034 unsigned __LONG32 cEnumColumnValue;
1035 JET_ENUMCOLUMNVALUE rgEnumColumnValue;
1036 };
1037 __C89_NAMELESS struct {
1038 unsigned __LONG32 cbData;
1039 void *pvData;
1040 };
1041 } DUMMYNIONNAME1;
1042} JET_ENUMCOLUMN;
1043
1044typedef struct _JET_ENUMCOLUMNID {
1045 JET_COLUMNID columnid;
1046 unsigned __LONG32 ctagSequence;
1047 unsigned __LONG32* rgtagSequence;
1048} JET_ENUMCOLUMNID;
1049
1050typedef struct tagJET_INDEXCREATE_A {
1051 unsigned __LONG32 cbStruct;
1052 char* szIndexName;
1053 char* szKey;
1054 unsigned __LONG32 cbKey;
1055 JET_GRBIT grbit;
1056 unsigned __LONG32 ulDensity;
1057 __C89_NAMELESS union {
1058 unsigned __LONG32 lcid;
1059 JET_UNICODEINDEX* pidxunicode;
1060 };
1061 __C89_NAMELESS union {
1062 unsigned __LONG32 cbVarSegMac;
1063 JET_TUPLELIMITS* ptuplelimits;
1064 };
1065 JET_CONDITIONALCOLUMN* rgconditionalcolumn;
1066 unsigned __LONG32 cConditionalColumn;
1067 JET_ERR err;
1068 unsigned __LONG32 cbKeyMost;
1069} JET_INDEXCREATE_A;
1070
1071typedef struct tagJET_INDEXCREATE_W {
1072 unsigned __LONG32 cbStruct;
1073 WCHAR* szIndexName;
1074 WCHAR* szKey;
1075 unsigned __LONG32 cbKey;
1076 JET_GRBIT grbit;
1077 unsigned __LONG32 ulDensity;
1078 __C89_NAMELESS union {
1079 unsigned __LONG32 lcid;
1080 JET_UNICODEINDEX* pidxunicode;
1081 };
1082 __C89_NAMELESS union {
1083 unsigned __LONG32 cbVarSegMac;
1084 JET_TUPLELIMITS* ptuplelimits;
1085 };
1086 JET_CONDITIONALCOLUMN* rgconditionalcolumn;
1087 unsigned __LONG32 cConditionalColumn;
1088 JET_ERR err;
1089 unsigned __LONG32 cbKeyMost;
1090} JET_INDEXCREATE_W;
1091#define JET_INDEXCREATE __MINGW_NAME_AW(JET_INDEXCREATE_)
1092
1093typedef struct tagJET_INDEXID {
1094 unsigned __LONG32 cbStruct;
1095 char rgbIndexId[];
1096} JET_INDEXID;
1097
1098typedef struct _JET_INDEXLIST {
1099 unsigned __LONG32 cbStruct;
1100 JET_TABLEID tableid;
1101 unsigned __LONG32 cRecord;
1102 JET_COLUMNID columnidindexname;
1103 JET_COLUMNID columnidgrbitIndex;
1104 JET_COLUMNID columnidcKey;
1105 JET_COLUMNID columnidcEntry;
1106 JET_COLUMNID columnidcPage;
1107 JET_COLUMNID columnidcColumn;
1108 JET_COLUMNID columnidiColumn;
1109 JET_COLUMNID columnidcolumnid;
1110 JET_COLUMNID columnidcoltyp;
1111 JET_COLUMNID columnidCountry;
1112 JET_COLUMNID columnidLangid;
1113 JET_COLUMNID columnidCp;
1114 JET_COLUMNID columnidCollate;
1115 JET_COLUMNID columnidgrbitColumn;
1116 JET_COLUMNID columnidcolumnname;
1117 JET_COLUMNID columnidLCMapFlags;
1118} JET_INDEXLIST;
1119
1120typedef struct _JET_INDEXRANGE {
1121 unsigned __LONG32 cbStruct;
1122 JET_TABLEID tableid;
1123 JET_GRBIT grbit;
1124} JET_INDEXRANGE;
1125
1126typedef struct _JET_INSTANCE_INFO_A {
1127 JET_INSTANCE hInstanceId;
1128 char* szInstanceName;
1129 JET_API_PTR cDatabases;
1130 char** szDatabaseFileName;
1131 char** szDatabaseDisplayName;
1132 char** szDatabaseSLVFileName;
1133} JET_INSTANCE_INFO_A;
1134
1135typedef struct _JET_INSTANCE_INFO_W {
1136 JET_INSTANCE hInstanceId;
1137 WCHAR* szInstanceName;
1138 JET_API_PTR cDatabases;
1139 WCHAR** szDatabaseFileName;
1140 WCHAR** szDatabaseDisplayName;
1141 WCHAR** szDatabaseSLVFileName;
1142} JET_INSTANCE_INFO_W;
1143
1144#define JET_INSTANCE_INFO __MINGW_NAME_AW(JET_INSTANCE_INFO_)
1145
1146typedef struct _JET_LOGINFO_A {
1147 unsigned __LONG32 cbSize;
1148 unsigned __LONG32 ulGenLow;
1149 unsigned __LONG32 ulGenHigh;
1150 char szBaseName[JET_BASE_NAME_LENGTH + 1];
1151} JET_LOGINFO_A;
1152
1153typedef struct JET_LOGINFO_W {
1154 unsigned __LONG32 cbSize;
1155 unsigned __LONG32 ulGenLow;
1156 unsigned __LONG32 ulGenHigh;
1157 WCHAR szBaseName[JET_BASE_NAME_LENGTH + 1];
1158} JET_LOGINFO_W;
1159
1160#define JET_LOGINFO __MINGW_NAME_AW(JET_LOGINFO_)
1161
1162typedef struct _JET_OBJECTINFO {
1163 unsigned __LONG32 cbStruct;
1164 JET_OBJTYP objtyp;
1165 JET_DATESERIAL dtCreate;
1166 JET_DATESERIAL dtUpdate;
1167 JET_GRBIT grbit;
1168 unsigned __LONG32 flags;
1169 unsigned __LONG32 cRecord;
1170 unsigned __LONG32 cPage;
1171} JET_OBJECTINFO;
1172
1173typedef struct _JET_OBJECTLIST {
1174 unsigned __LONG32 cbStruct;
1175 JET_TABLEID tableid;
1176 unsigned __LONG32 cRecord;
1177 JET_COLUMNID columnidcontainername;
1178 JET_COLUMNID columnidobjectname;
1179 JET_COLUMNID columnidobjtyp;
1180 JET_COLUMNID columniddtCreate;
1181 JET_COLUMNID columniddtUpdate;
1182 JET_COLUMNID columnidgrbit;
1183 JET_COLUMNID columnidflags;
1184 JET_COLUMNID columnidcRecord;
1185 JET_COLUMNID columnidcPage;
1186} JET_OBJECTLIST;
1187
1188#if (JET_VERSION >= 0x0600)
1189typedef struct tagJET_OPENTEMPORARYTABLE {
1190 unsigned __LONG32 cbStruct;
1191 const JET_COLUMNDEF* prgcolumndef;
1192 unsigned __LONG32 ccolumn;
1193 JET_UNICODEINDEX* pidxunicode;
1194 JET_GRBIT grbit;
1195 JET_COLUMNID* prgcolumnid;
1196 unsigned __LONG32 cbKeyMost;
1197 unsigned __LONG32 cbVarSegMac;
1198 JET_TABLEID tableid;
1199} JET_OPENTEMPORARYTABLE;
1200#endif /*(JET_VERSION >= 0x0600)*/
1201
1202typedef struct _JET_RECORDLIST{
1203 unsigned __LONG32 cbStruct;
1204 JET_TABLEID tableid;
1205 unsigned __LONG32 cRecord;
1206 JET_COLUMNID columnidBookmark;
1207} JET_RECORDLIST;
1208
1209typedef struct _JET_RECPOS {
1210 unsigned __LONG32 cbStruct;
1211 unsigned __LONG32 centriesLT;
1212 unsigned __LONG32 centriesInRange;
1213 unsigned __LONG32 centriesTotal;
1214} JET_RECPOS;
1215
1216#if (JET_VERSION >= 0x0600)
1217typedef struct _JET_RECSIZE {
1218 unsigned __int64 cbData;
1219 unsigned __int64 cbLongValueData;
1220 unsigned __int64 cbOverhead;
1221 unsigned __int64 cbLongValueOverhead;
1222 unsigned __int64 cNonTaggedColumns;
1223 unsigned __int64 cTaggedColumns;
1224 unsigned __int64 cLongValues;
1225 unsigned __int64 cMultiValues;
1226} JET_RECSIZE;
1227#endif /*(JET_VERSION >= 0x0600)*/
1228
1229typedef struct _JET_RETINFO {
1230 unsigned __LONG32 cbStruct;
1231 unsigned __LONG32 ibLongValue;
1232 unsigned __LONG32 itagSequence;
1233 JET_COLUMNID columnidNextTagged;
1234} JET_RETINFO;
1235
1236typedef struct _JET_RETRIEVECOLUMN {
1237 JET_COLUMNID columnid;
1238 void* pvData; unsigned __LONG32 cbData;
1239 unsigned __LONG32 cbActual;
1240 JET_GRBIT grbit;
1241 unsigned __LONG32 ibLongValue;
1242 unsigned __LONG32 itagSequence;
1243 JET_COLUMNID columnidNextTagged;
1244 JET_ERR err;
1245} JET_RETRIEVECOLUMN;
1246
1247#ifndef xRPC_STRING
1248#define xRPC_STRING
1249#endif
1250
1251typedef struct _JET_RSTMAP_A{
1252 xRPC_STRING char* szDatabaseName;
1253 xRPC_STRING char* szNewDatabaseName;
1254} JET_RSTMAP_A;
1255
1256typedef struct _JET_RSTMAP_W{
1257 xRPC_STRING WCHAR* szDatabaseName;
1258 xRPC_STRING WCHAR* szNewDatabaseName;
1259} JET_RSTMAP_W;
1260
1261typedef JET_ERR (JET_API *JET_PFNSTATUS)(
1262 JET_SESID sesid,
1263 JET_SNP snp,
1264 JET_SNT snt,
1265 void* pv
1266);
1267
1268typedef struct _JET_RSTINFO_A{
1269 unsigned __LONG32 cbStruct;
1270 JET_RSTMAP_A* rgrstmap;
1271 __LONG32 crstmap;
1272 JET_LGPOS lgposStop;
1273 JET_LOGTIME logtimeStop;
1274 JET_PFNSTATUS pfnStatus;
1275} JET_RSTINFO_A;
1276
1277typedef struct _JET_RSTINFO_W{
1278 unsigned __LONG32 cbStruct;
1279 JET_RSTMAP_W* rgrstmap;
1280 __LONG32 crstmap;
1281 JET_LGPOS lgposStop;
1282 JET_LOGTIME logtimeStop;
1283 JET_PFNSTATUS pfnStatus;
1284} JET_RSTINFO_W;
1285
1286#define JET_RSTMAP __MINGW_NAME_AW(JET_RSTMAP_)
1287#define JET_RSTINFO __MINGW_NAME_AW(JET_RSTINFO_)
1288
1289typedef struct _JET_SETCOLUMN {
1290 JET_COLUMNID columnid;
1291 const void* pvData;
1292 unsigned __LONG32 cbData;
1293 JET_GRBIT grbit;
1294 unsigned __LONG32 ibLongValue;
1295 unsigned __LONG32 itagSequence;
1296 JET_ERR err;
1297} JET_SETCOLUMN;
1298
1299typedef struct _JET_SETINFO {
1300 unsigned __LONG32 cbStruct;
1301 unsigned __LONG32 ibLongValue;
1302 unsigned __LONG32 itagSequence;
1303} JET_SETINFO;
1304
1305typedef struct _JET_SETSYSPARAM_A {
1306 unsigned __LONG32 paramid;
1307 JET_API_PTR lParam;
1308 const char* sz;
1309 JET_ERR err;
1310} JET_SETSYSPARAM_A;
1311
1312typedef struct _JET_SETSYSPARAM_W {
1313 unsigned __LONG32 paramid;
1314 JET_API_PTR lParam;
1315 const WCHAR* sz;
1316 JET_ERR err;
1317} JET_SETSYSPARAM_W;
1318
1319#define JET_SETSYSPARAM __MINGW_NAME_AW(JET_SETSYSPARAM_)
1320
1321typedef struct _JET_SNPROG {
1322 unsigned __LONG32 cbStruct;
1323 unsigned __LONG32 cunitDone;
1324 unsigned __LONG32 cunitTotal;
1325} JET_SNPROG;
1326
1327typedef struct tagJET_TABLECREATE_A {
1328 unsigned __LONG32 cbStruct;
1329 char* szTableName;
1330 char* szTemplateTableName;
1331 unsigned __LONG32 ulPages;
1332 unsigned __LONG32 ulDensity;
1333 JET_COLUMNCREATE* rgcolumncreate;
1334 unsigned __LONG32 cColumns;
1335 JET_INDEXCREATE_A* rgindexcreate;
1336 unsigned __LONG32 cIndexes;
1337 JET_GRBIT grbit;
1338 JET_TABLEID tableid;
1339 unsigned __LONG32 cCreated;
1340} JET_TABLECREATE_A;
1341
1342typedef struct tagJET_TABLECREATE_W {
1343 unsigned __LONG32 cbStruct;
1344 WCHAR* szTableName;
1345 WCHAR* szTemplateTableName;
1346 unsigned __LONG32 ulPages;
1347 unsigned __LONG32 ulDensity;
1348 JET_COLUMNCREATE* rgcolumncreate;
1349 unsigned __LONG32 cColumns;
1350 JET_INDEXCREATE_W* rgindexcreate;
1351 unsigned __LONG32 cIndexes;
1352 JET_GRBIT grbit;
1353 JET_TABLEID tableid;
1354 unsigned __LONG32 cCreated;
1355} JET_TABLECREATE_W;
1356
1357#define JET_TABLECREATE __MINGW_NAME_AW(JET_TABLECREATE_)
1358
1359typedef struct tagJET_TABLECREATE2_A {
1360 unsigned __LONG32 cbStruct;
1361 char* szTableName;
1362 char* szTemplateTableName;
1363 unsigned __LONG32 ulPages;
1364 unsigned __LONG32 ulDensity;
1365 JET_COLUMNCREATE_A* rgcolumncreate;
1366 unsigned __LONG32 cColumns;
1367 JET_INDEXCREATE_A* rgindexcreate;
1368 unsigned __LONG32 cIndexes;
1369 char* szCallback;
1370 JET_CBTYP cbtyp;
1371 JET_GRBIT grbit;
1372 JET_TABLEID tableid;
1373 unsigned __LONG32 cCreated;
1374} JET_TABLECREATE2_A;
1375
1376typedef struct tagJET_TABLECREATE2_W {
1377 unsigned __LONG32 cbStruct;
1378 WCHAR* szTableName;
1379 WCHAR* szTemplateTableName;
1380 unsigned __LONG32 ulPages;
1381 unsigned __LONG32 ulDensity;
1382 JET_COLUMNCREATE_W* rgcolumncreate;
1383 unsigned __LONG32 cColumns;
1384 JET_INDEXCREATE_W* rgindexcreate;
1385 unsigned __LONG32 cIndexes;
1386 WCHAR* szCallback;
1387 JET_CBTYP cbtyp;
1388 JET_GRBIT grbit;
1389 JET_TABLEID tableid;
1390 unsigned __LONG32 cCreated;
1391} JET_TABLECREATE2_W;
1392
1393#define JET_TABLECREATE2 __MINGW_NAME_AW(JET_TABLECREATE2_)
1394
1395#if (JET_VERSION >= 0x0600)
1396typedef struct _JET_THREADSTATS {
1397 unsigned __LONG32 cbStruct;
1398 unsigned __LONG32 cPageReferenced;
1399 unsigned __LONG32 cPageRead;
1400 unsigned __LONG32 cPagePreread;
1401 unsigned __LONG32 cPageDirtied;
1402 unsigned __LONG32 cPageRedirtied;
1403 unsigned __LONG32 cLogRecord;
1404 unsigned __LONG32 cbLogRecord;
1405} JET_THREADSTATS;
1406
1407#endif /*(JET_VERSION >= 0x0600)*/
1408
1409typedef struct tag_JET_USERDEFINEDDEFAULT_A {
1410 char* szCallback;
1411 unsigned char* pbUserData;
1412 unsigned __LONG32 cbUserData;
1413 char* szDependantColumns;
1414} JET_USERDEFINEDDEFAULT_A;
1415
1416typedef struct tag_JET_USERDEFINEDDEFAULT_W {
1417 WCHAR* szCallback;
1418 unsigned char* pbUserData;
1419 unsigned __LONG32 cbUserData;
1420 WCHAR* szDependantColumns;
1421} JET_USERDEFINEDDEFAULT_W;
1422
1423#define JET_USERDEFINEDDEFAULT __MINGW_NAME_AW(JET_USERDEFINEDDEFAULT_)
1424
1425typedef JET_ERR (JET_API* JET_CALLBACK)(
1426 JET_SESID sesid,
1427 JET_DBID dbid,
1428 JET_TABLEID tableid,
1429 JET_CBTYP cbtyp,
1430 void* pvArg1,
1431 void* pvArg2,
1432 void* pvContext,
1433 JET_API_PTR ulUnused
1434);
1435
1436typedef void * (JET_API *JET_PFNREALLOC)(
1437 void* pvContext,
1438 void* pv,
1439 unsigned __LONG32 cb
1440);
1441
1442JET_ERR JET_API JetAddColumnA(
1443 JET_SESID sesid,
1444 JET_TABLEID tableid,
1445 JET_PCSTR szColumnName,
1446 const JET_COLUMNDEF* pcolumndef,
1447 const void* pvDefault,
1448 unsigned __LONG32 cbDefault,
1449 JET_COLUMNID* pcolumnid
1450);
1451
1452JET_ERR JET_API JetAddColumnW(
1453 JET_SESID sesid,
1454 JET_TABLEID tableid,
1455 JET_PCWSTR szColumnName,
1456 const JET_COLUMNDEF* pcolumndef,
1457 const void* pvDefault,
1458 unsigned __LONG32 cbDefault,
1459 JET_COLUMNID* pcolumnid
1460);
1461
1462#define JetAddColumn __MINGW_NAME_AW(JetAddColumn)
1463
1464JET_ERR JET_API JetAttachDatabaseA(
1465 JET_SESID sesid,
1466 const char* szFilename,
1467 JET_GRBIT grbit
1468);
1469
1470JET_ERR JET_API JetAttachDatabaseW(
1471 JET_SESID sesid,
1472 const WCHAR* szFilename,
1473 JET_GRBIT grbit
1474);
1475
1476#define JetAttachDatabase __MINGW_NAME_AW(JetAttachDatabase)
1477
1478JET_ERR JET_API JetAttachDatabase2A(
1479 JET_SESID sesid,
1480 const char* szFilename,
1481 const unsigned __LONG32 cpgDatabaseSizeMax,
1482 JET_GRBIT grbit
1483);
1484
1485JET_ERR JET_API JetAttachDatabase2W(
1486 JET_SESID sesid,
1487 const WCHAR* szFilename,
1488 const unsigned __LONG32 cpgDatabaseSizeMax,
1489 JET_GRBIT grbit
1490);
1491
1492#define JetAttachDatabase2 __MINGW_NAME_AW(JetAttachDatabase2)
1493
1494JET_ERR JET_API JetBackupA(
1495 JET_PCSTR szBackupPath,
1496 JET_GRBIT grbit,
1497 JET_PFNSTATUS pfnStatus
1498);
1499
1500JET_ERR JET_API JetBackupW(
1501 JET_PCWSTR szBackupPath,
1502 JET_GRBIT grbit,
1503 JET_PFNSTATUS pfnStatus
1504);
1505
1506#define JetBackup __MINGW_NAME_AW(JetBackup)
1507
1508JET_ERR JET_API JetBackupInstanceA(
1509 JET_INSTANCE instance,
1510 JET_PCSTR szBackupPath,
1511 JET_GRBIT grbit,
1512 JET_PFNSTATUS pfnStatus
1513);
1514
1515JET_ERR JET_API JetBackupInstanceW(
1516 JET_INSTANCE instance,
1517 JET_PCWSTR szBackupPath,
1518 JET_GRBIT grbit,
1519 JET_PFNSTATUS pfnStatus
1520);
1521
1522#define JetBackupInstance __MINGW_NAME_AW(JetBackupInstance)
1523
1524JET_ERR JET_API JetBeginExternalBackup(
1525 JET_GRBIT grbit
1526);
1527
1528JET_ERR JET_API JetBeginExternalBackupInstance(
1529 JET_INSTANCE instance,
1530 JET_GRBIT grbit
1531);
1532
1533JET_ERR JET_API JetBeginSessionA(
1534 JET_INSTANCE instance,
1535 JET_SESID* psesid,
1536 JET_PCSTR szUserName,
1537 JET_PCSTR szPassword
1538);
1539
1540JET_ERR JET_API JetBeginSessionW(
1541 JET_INSTANCE instance,
1542 JET_SESID* psesid,
1543 JET_PCWSTR szUserName,
1544 JET_PCWSTR szPassword
1545);
1546
1547#define JetBeginSession __MINGW_NAME_AW(JetBeginSession)
1548
1549JET_ERR JET_API JetBeginTransaction(
1550 JET_SESID sesid
1551);
1552
1553JET_ERR JET_API JetBeginTransaction2(
1554 JET_SESID sesid,
1555 JET_GRBIT grbit
1556);
1557
1558JET_ERR JET_API JetCloseDatabase(
1559 JET_SESID sesid,
1560 JET_DBID dbid,
1561 JET_GRBIT grbit
1562);
1563
1564JET_ERR JET_API JetCloseFile(
1565 JET_HANDLE hfFile
1566);
1567
1568JET_ERR JET_API JetCloseFileInstance(
1569 JET_INSTANCE instance,
1570 JET_HANDLE hfFile
1571);
1572
1573JET_ERR JET_API JetCloseTable(
1574 JET_SESID sesid,
1575 JET_TABLEID tableid
1576);
1577
1578JET_ERR JET_API JetCommitTransaction(
1579 JET_SESID sesid,
1580 JET_GRBIT grbit
1581);
1582
1583JET_ERR JET_API JetCompactA(
1584 JET_SESID sesid,
1585 JET_PCSTR szDatabaseSrc,
1586 JET_PCSTR szDatabaseDest,
1587 JET_PFNSTATUS pfnStatus,
1588 JET_CONVERT_A* pconvert,
1589 JET_GRBIT grbit
1590);
1591
1592JET_ERR JET_API JetCompactW(
1593 JET_SESID sesid,
1594 JET_PCWSTR szDatabaseSrc,
1595 JET_PCWSTR szDatabaseDest,
1596 JET_PFNSTATUS pfnStatus,
1597 JET_CONVERT_W* pconvert,
1598 JET_GRBIT grbit
1599);
1600
1601#define JetCompact __MINGW_NAME_AW(JetCompact)
1602
1603JET_ERR JET_API JetComputeStats(
1604 JET_SESID sesid,
1605 JET_TABLEID tableid
1606);
1607
1608JET_ERR JET_API JetCreateDatabaseA(
1609 JET_SESID sesid,
1610 JET_PCSTR szFilename,
1611 JET_PCSTR szConnect,
1612 JET_DBID* pdbid,
1613 JET_GRBIT grbit
1614);
1615
1616JET_ERR JET_API JetCreateDatabaseW(
1617 JET_SESID sesid,
1618 JET_PCWSTR szFilename,
1619 JET_PCWSTR szConnect,
1620 JET_DBID* pdbid,
1621 JET_GRBIT grbit
1622);
1623
1624#define JetCreateDatabase __MINGW_NAME_AW(JetCreateDatabase)
1625
1626JET_ERR JET_API JetCreateDatabase2A(
1627 JET_SESID sesid,
1628 const char* szFilename,
1629 const unsigned __LONG32 cpgDatabaseSizeMax,
1630 JET_DBID* pdbid,
1631 JET_GRBIT grbit
1632);
1633
1634JET_ERR JET_API JetCreateDatabase2W(
1635 JET_SESID sesid,
1636 const WCHAR* szFilename,
1637 const unsigned __LONG32 cpgDatabaseSizeMax,
1638 JET_DBID* pdbid,
1639 JET_GRBIT grbit
1640);
1641
1642#define JetCreateDatabase2 __MINGW_NAME_AW(JetCreateDatabase2)
1643
1644JET_ERR JET_API JetCreateIndexA(
1645 JET_SESID sesid,
1646 JET_TABLEID tableid,
1647 JET_PCSTR szIndexName,
1648 JET_GRBIT grbit,
1649 const char* szKey,
1650 unsigned __LONG32 cbKey,
1651 unsigned __LONG32 lDensity
1652);
1653
1654JET_ERR JET_API JetCreateIndexW(
1655 JET_SESID sesid,
1656 JET_TABLEID tableid,
1657 JET_PCWSTR szIndexName,
1658 JET_GRBIT grbit,
1659 const WCHAR* szKey,
1660 unsigned __LONG32 cbKey,
1661 unsigned __LONG32 lDensity
1662);
1663
1664#define JetCreateIndex __MINGW_NAME_AW(JetCreateIndex)
1665
1666JET_ERR JET_API JetCreateIndex2A(
1667 JET_SESID sesid,
1668 JET_TABLEID tableid,
1669 JET_INDEXCREATE_A* pindexcreate,
1670 unsigned __LONG32 cIndexCreate
1671);
1672
1673JET_ERR JET_API JetCreateIndex2W(
1674 JET_SESID sesid,
1675 JET_TABLEID tableid,
1676 JET_INDEXCREATE_W* pindexcreate,
1677 unsigned __LONG32 cIndexCreate
1678);
1679
1680#define JetCreateIndex2 __MINGW_NAME_AW(JetCreateIndex2)
1681
1682JET_ERR JET_API JetCreateInstanceA(
1683 JET_INSTANCE* pinstance,
1684 const char* szInstanceName
1685);
1686
1687JET_ERR JET_API JetCreateInstanceW(
1688 JET_INSTANCE* pinstance,
1689 const WCHAR* szInstanceName
1690);
1691
1692#define JetCreateInstance __MINGW_NAME_AW(JetCreateInstance)
1693
1694JET_ERR JET_API JetCreateInstance2A(
1695 JET_INSTANCE* pinstance,
1696 const char* szInstanceName,
1697 const char* szDisplayName,
1698 JET_GRBIT grbit
1699);
1700
1701JET_ERR JET_API JetCreateInstance2W(
1702 JET_INSTANCE* pinstance,
1703 const WCHAR* szInstanceName,
1704 const WCHAR* szDisplayName,
1705 JET_GRBIT grbit
1706);
1707
1708JET_ERR JET_API JetCreateTableA(
1709 JET_SESID sesid,
1710 JET_DBID dbid,
1711 const char* szTableName,
1712 unsigned __LONG32 lPages,
1713 unsigned __LONG32 lDensity,
1714 JET_TABLEID* ptableid
1715);
1716
1717JET_ERR JET_API JetCreateTableW(
1718 JET_SESID sesid,
1719 JET_DBID dbid,
1720 const WCHAR* szTableName,
1721 unsigned __LONG32 lPages,
1722 unsigned __LONG32 lDensity,
1723 JET_TABLEID* ptableid
1724);
1725
1726JET_ERR JET_API JetCreateTableColumnIndexA(
1727 JET_SESID sesid,
1728 JET_DBID dbid,
1729 JET_TABLECREATE_A* ptablecreate
1730);
1731
1732JET_ERR JET_API JetCreateTableColumnIndexW(
1733 JET_SESID sesid,
1734 JET_DBID dbid,
1735 JET_TABLECREATE_W* ptablecreate
1736);
1737
1738#define JetCreateInstance2 __MINGW_NAME_AW(JetCreateInstance2)
1739
1740JET_ERR JET_API JetCreateTableColumnIndex2A(
1741 JET_SESID sesid,
1742 JET_DBID dbid,
1743 JET_TABLECREATE2_A* ptablecreate
1744);
1745
1746JET_ERR JET_API JetCreateTableColumnIndex2W(
1747 JET_SESID sesid,
1748 JET_DBID dbid,
1749 JET_TABLECREATE2_W* ptablecreate
1750);
1751
1752#define JetCreateTableColumnIndex2 __MINGW_NAME_AW(JetCreateTableColumnIndex2)
1753
1754JET_ERR JET_API JetDefragmentA(
1755 JET_SESID sesid,
1756 JET_DBID dbid,
1757 JET_PCSTR szTableName,
1758 unsigned __LONG32* pcPasses,
1759 unsigned __LONG32* pcSeconds,
1760 JET_GRBIT grbit
1761);
1762
1763JET_ERR JET_API JetDefragmentW(
1764 JET_SESID sesid,
1765 JET_DBID dbid,
1766 JET_PCWSTR szTableName,
1767 unsigned __LONG32* pcPasses,
1768 unsigned __LONG32* pcSeconds,
1769 JET_GRBIT grbit
1770);
1771
1772#define JetDefragment __MINGW_NAME_AW(JetDefragment)
1773
1774JET_ERR JET_API JetDefragment2A(
1775 JET_SESID sesid,
1776 JET_DBID dbid,
1777 JET_PCSTR szTableName,
1778 unsigned __LONG32* pcPasses,
1779 unsigned __LONG32* pcSeconds,
1780 JET_CALLBACK callback,
1781 JET_GRBIT grbit
1782);
1783
1784JET_ERR JET_API JetDefragment2W(
1785 JET_SESID sesid,
1786 JET_DBID dbid,
1787 JET_PCWSTR szTableName,
1788 unsigned __LONG32* pcPasses,
1789 unsigned __LONG32* pcSeconds,
1790 JET_CALLBACK callback,
1791 JET_GRBIT grbit
1792);
1793
1794#define JetDefragment2 __MINGW_NAME_AW(JetDefragment2)
1795
1796JET_ERR JET_API JetDelete(
1797 JET_SESID sesid,
1798 JET_TABLEID tableid
1799);
1800
1801JET_ERR JET_API JetDeleteColumnA(
1802 JET_SESID sesid,
1803 JET_TABLEID tableid,
1804 const char* szColumnName
1805);
1806
1807JET_ERR JET_API JetDeleteColumnW(
1808 JET_SESID sesid,
1809 JET_TABLEID tableid,
1810 const WCHAR* szColumnName
1811);
1812
1813#define JetDeleteColumn __MINGW_NAME_AW(JetDeleteColumn)
1814
1815JET_ERR JET_API JetDeleteColumn2A(
1816 JET_SESID sesid,
1817 JET_TABLEID tableid,
1818 const char* szColumnName,
1819 const JET_GRBIT grbit
1820);
1821
1822JET_ERR JET_API JetDeleteColumn2W(
1823 JET_SESID sesid,
1824 JET_TABLEID tableid,
1825 const WCHAR* szColumnName,
1826 const JET_GRBIT grbit
1827);
1828
1829#define JetDeleteColumn2 __MINGW_NAME_AW(JetDeleteColumn2)
1830
1831JET_ERR JET_API JetDeleteIndexA(
1832 JET_SESID sesid,
1833 JET_TABLEID tableid,
1834 JET_PCSTR szIndexName
1835);
1836
1837JET_ERR JET_API JetDeleteIndexW(
1838 JET_SESID sesid,
1839 JET_TABLEID tableid,
1840 JET_PCWSTR szIndexName
1841);
1842
1843#define JetDeleteColumn2 __MINGW_NAME_AW(JetDeleteColumn2)
1844
1845JET_ERR JET_API JetDeleteIndexA(
1846 JET_SESID sesid,
1847 JET_TABLEID tableid,
1848 JET_PCSTR szIndexName
1849);
1850
1851JET_ERR JET_API JetDeleteIndexW(
1852 JET_SESID sesid,
1853 JET_TABLEID tableid,
1854 JET_PCWSTR szIndexName
1855);
1856
1857#define JetDeleteIndex __MINGW_NAME_AW(JetDeleteIndex)
1858
1859JET_ERR JET_API JetDeleteTableA(
1860 JET_SESID sesid,
1861 JET_DBID dbid,
1862 const char* szTableName
1863);
1864
1865JET_ERR JET_API JetDeleteTableW(
1866 JET_SESID sesid,
1867 JET_DBID dbid,
1868 const WCHAR* szTableName
1869);
1870
1871#define JetDeleteTable __MINGW_NAME_AW(JetDeleteTable)
1872
1873JET_ERR JET_API JetDetachDatabaseA(
1874 JET_SESID sesid,
1875 const char* szFilename
1876);
1877
1878JET_ERR JET_API JetDetachDatabaseW(
1879 JET_SESID sesid,
1880 const char* szFilename
1881);
1882
1883#define JetDetachDatabase __MINGW_NAME_AW(JetDetachDatabase)
1884
1885JET_ERR JET_API JetDetachDatabase2A(
1886 JET_SESID sesid,
1887 const char* szFilename,
1888 JET_GRBIT grbit
1889);
1890
1891JET_ERR JET_API JetDetachDatabase2W(
1892 JET_SESID sesid,
1893 const WCHAR* szFilename,
1894 JET_GRBIT grbit
1895);
1896
1897#define JetDetachDatabase2 __MINGW_NAME_AW(JetDetachDatabase2)
1898
1899JET_ERR JET_API JetDupCursor(
1900 JET_SESID sesid,
1901 JET_TABLEID tableid,
1902 JET_TABLEID* ptableid,
1903 JET_GRBIT grbit
1904);
1905
1906JET_ERR JET_API JetDupSession(
1907 JET_SESID sesid,
1908 JET_SESID* psesid
1909);
1910
1911JET_ERR JET_API JetEnableMultiInstanceA(
1912 JET_SETSYSPARAM_A* psetsysparam,
1913 unsigned __LONG32 csetsysparam,
1914 unsigned __LONG32* pcsetsucceed
1915);
1916
1917JET_ERR JET_API JetEnableMultiInstanceW(
1918 JET_SETSYSPARAM_W* psetsysparam,
1919 unsigned __LONG32 csetsysparam,
1920 unsigned __LONG32* pcsetsucceed
1921);
1922
1923#define JetEnableMultiInstance __MINGW_NAME_AW(JetEnableMultiInstance)
1924
1925JET_ERR JET_API JetEndExternalBackup(void);
1926
1927JET_ERR JET_API JetEndExternalBackupInstance(
1928 JET_INSTANCE instance
1929);
1930
1931JET_ERR JET_API JetEndExternalBackupInstance2(
1932 JET_INSTANCE instance,
1933 JET_GRBIT grbit
1934);
1935
1936JET_ERR JET_API JetEndSession(
1937 JET_SESID sesid,
1938 JET_GRBIT grbit
1939);
1940
1941JET_ERR JET_API JetEnumerateColumns(
1942 JET_SESID sesid,
1943 JET_TABLEID tableid,
1944 unsigned __LONG32 cEnumColumnId,
1945 JET_ENUMCOLUMNID* rgEnumColumnId,
1946 unsigned __LONG32* pcEnumColumn,
1947 JET_ENUMCOLUMN** prgEnumColumn,
1948 JET_PFNREALLOC pfnRealloc,
1949 void* pvReallocContext,
1950 unsigned __LONG32 cbDataMost,
1951 JET_GRBIT grbit
1952);
1953
1954JET_ERR JET_API JetEscrowUpdate(
1955 JET_SESID sesid,
1956 JET_TABLEID tableid,
1957 JET_COLUMNID columnid,
1958 void* pv,
1959 unsigned __LONG32 cbMax,
1960 void* pvOld,
1961 unsigned __LONG32 cbOldMax,
1962 unsigned __LONG32* pcbOldActual,
1963 JET_GRBIT grbit
1964);
1965
1966JET_ERR JET_API JetExternalRestoreA(
1967 JET_PSTR szCheckpointFilePath,
1968 JET_PSTR szLogPath,
1969 JET_RSTMAP_A* rgrstmap,
1970 __LONG32 crstfilemap,
1971 JET_PSTR szBackupLogPath,
1972 __LONG32 genLow,
1973 __LONG32 genHigh,
1974 JET_PFNSTATUS pfn
1975);
1976
1977JET_ERR JET_API JetExternalRestoreW(
1978 JET_PWSTR szCheckpointFilePath,
1979 JET_PWSTR szLogPath,
1980 JET_RSTMAP_W* rgrstmap,
1981 __LONG32 crstfilemap,
1982 JET_PWSTR szBackupLogPath,
1983 __LONG32 genLow,
1984 __LONG32 genHigh,
1985 JET_PFNSTATUS pfn
1986);
1987
1988#define JetExternalRestore __MINGW_NAME_AW(JetExternalRestore)
1989
1990JET_ERR JET_API JetExternalRestore2A(
1991 JET_PSTR szCheckpointFilePath,
1992 JET_PSTR szLogPath,
1993 JET_RSTMAP_A* rgrstmap,
1994 __LONG32 crstfilemap,
1995 JET_PSTR szBackupLogPath,
1996 JET_LOGINFO_A* pLogInfo,
1997 JET_PSTR szTargetInstanceName,
1998 JET_PSTR szTargetInstanceLogPath,
1999 JET_PSTR szTargetInstanceCheckpointPath,
2000 JET_PFNSTATUS pfn
2001);
2002
2003JET_ERR JET_API JetExternalRestore2W(
2004 JET_PWSTR szCheckpointFilePath,
2005 JET_PWSTR szLogPath,
2006 JET_RSTMAP_W* rgrstmap,
2007 __LONG32 crstfilemap,
2008 JET_PWSTR szBackupLogPath,
2009 JET_LOGINFO_W* pLogInfo,
2010 JET_PWSTR szTargetInstanceName,
2011 JET_PWSTR szTargetInstanceLogPath,
2012 JET_PWSTR szTargetInstanceCheckpointPath,
2013 JET_PFNSTATUS pfn
2014);
2015
2016#define JetExternalRestore2 __MINGW_NAME_AW(JetExternalRestore2)
2017
2018JET_ERR JET_API JetFreeBuffer(
2019 char* pbBuf
2020);
2021
2022JET_ERR JET_API JetGetAttachInfoA(
2023 char* szz,
2024 unsigned __LONG32 cbMax,
2025 unsigned __LONG32* pcbActual
2026);
2027
2028JET_ERR JET_API JetGetAttachInfoW(
2029 WCHAR* szz,
2030 unsigned __LONG32 cbMax,
2031 unsigned __LONG32* pcbActual
2032);
2033
2034#define JetGetAttachInfo __MINGW_NAME_AW(JetGetAttachInfo)
2035
2036JET_ERR JET_API JetGetAttachInfoInstanceA(
2037 JET_INSTANCE instance,
2038 char* szz,
2039 unsigned __LONG32 cbMax,
2040 unsigned __LONG32* pcbActual
2041);
2042
2043JET_ERR JET_API JetGetAttachInfoInstanceW(
2044 JET_INSTANCE instance,
2045 WCHAR* szz,
2046 unsigned __LONG32 cbMax,
2047 unsigned __LONG32* pcbActual
2048);
2049
2050#define JetGetAttachInfoInstance __MINGW_NAME_AW(JetGetAttachInfoInstance)
2051
2052JET_ERR JET_API JetGetBookmark(
2053 JET_SESID sesid,
2054 JET_TABLEID tableid,
2055 void* pvBookmark,
2056 unsigned __LONG32 cbMax,
2057 unsigned __LONG32* pcbActual
2058);
2059
2060JET_ERR JET_API JetGetColumnInfoA(
2061 JET_SESID sesid,
2062 JET_DBID dbid,
2063 const char* szTableName,
2064 const char* szColumnName,
2065 void* pvResult,
2066 unsigned __LONG32 cbMax,
2067 unsigned __LONG32 InfoLevel
2068);
2069
2070JET_ERR JET_API JetGetColumnInfoW(
2071 JET_SESID sesid,
2072 JET_DBID dbid,
2073 const WCHAR* szTableName,
2074 const WCHAR* szColumnName,
2075 void* pvResult,
2076 unsigned __LONG32 cbMax,
2077 unsigned __LONG32 InfoLevel
2078);
2079
2080#define JetGetColumnInfo __MINGW_NAME_AW(JetGetColumnInfo)
2081
2082JET_ERR JET_API JetGetCurrentIndexA(
2083 JET_SESID sesid,
2084 JET_TABLEID tableid,
2085 JET_PSTR szIndexName,
2086 unsigned __LONG32 cchIndexName
2087);
2088
2089JET_ERR JET_API JetGetCurrentIndexW(
2090 JET_SESID sesid,
2091 JET_TABLEID tableid,
2092 JET_PWSTR szIndexName,
2093 unsigned __LONG32 cchIndexName
2094);
2095
2096#define JetGetCurrentIndex __MINGW_NAME_AW(JetGetCurrentIndex)
2097
2098JET_ERR JET_API JetGetCursorInfo(
2099 JET_SESID sesid,
2100 JET_TABLEID tableid,
2101 void* pvResult,
2102 unsigned __LONG32 cbMax,
2103 unsigned __LONG32 InfoLevel
2104);
2105
2106JET_ERR JET_API JetGetDatabaseFileInfoA(
2107 const char* szDatabaseName,
2108 void* pvResult,
2109 unsigned __LONG32 cbMax,
2110 unsigned __LONG32 InfoLevel
2111);
2112
2113JET_ERR JET_API JetGetDatabaseFileInfoW(
2114 const WCHAR* szDatabaseName,
2115 void* pvResult,
2116 unsigned __LONG32 cbMax,
2117 unsigned __LONG32 InfoLevel
2118);
2119
2120#define JetGetDatabaseFileInfo __MINGW_NAME_AW(JetGetDatabaseFileInfo)
2121
2122JET_ERR JET_API JetGetDatabaseInfoA(
2123 JET_SESID sesid,
2124 JET_DBID dbid,
2125 void* pvResult,
2126 unsigned __LONG32 cbMax,
2127 unsigned __LONG32 InfoLevel
2128);
2129
2130JET_ERR JET_API JetGetDatabaseInfoW(
2131 JET_SESID sesid,
2132 JET_DBID dbid,
2133 void* pvResult,
2134 unsigned __LONG32 cbMax,
2135 unsigned __LONG32 InfoLevel
2136);
2137
2138#define JetGetDatabaseInfo __MINGW_NAME_AW(JetGetDatabaseInfo)
2139
2140JET_ERR JET_API JetGetIndexInfoA(
2141 JET_SESID sesid,
2142 JET_DBID dbid,
2143 const char* szTableName,
2144 const char* szIndexName,
2145 void* pvResult,
2146 unsigned __LONG32 cbResult,
2147 unsigned __LONG32 InfoLevel
2148);
2149
2150JET_ERR JET_API JetGetIndexInfoW(
2151 JET_SESID sesid,
2152 JET_DBID dbid,
2153 const WCHAR* szTableName,
2154 const WCHAR* szIndexName,
2155 void* pvResult,
2156 unsigned __LONG32 cbResult,
2157 unsigned __LONG32 InfoLevel
2158);
2159
2160#define JetGetIndexInfo __MINGW_NAME_AW(JetGetIndexInfo)
2161
2162JET_ERR JET_API JetGetInstanceInfoA(
2163 unsigned __LONG32* pcInstanceInfo,
2164 JET_INSTANCE_INFO_A** paInstanceInfo
2165);
2166
2167JET_ERR JET_API JetGetInstanceInfoW(
2168 unsigned __LONG32* pcInstanceInfo,
2169 JET_INSTANCE_INFO_W** paInstanceInfo
2170);
2171
2172#define JetGetInstanceInfo __MINGW_NAME_AW(JetGetInstanceInfo)
2173
2174#if (JET_VERSION >= 0x0600)
2175JET_ERR JET_API JetGetInstanceMiscInfo(
2176 JET_INSTANCE instance,
2177 void* pvResult,
2178 unsigned __LONG32 cbMax,
2179 unsigned __LONG32 InfoLevel
2180);
2181#endif /*(JET_VERSION >= 0x0600)*/
2182
2183JET_ERR JET_API JetGetLock(
2184 JET_SESID sesid,
2185 JET_TABLEID tableid,
2186 JET_GRBIT grbit
2187);
2188
2189JET_ERR JET_API JetGetLogInfoA(
2190 char* szz,
2191 unsigned __LONG32 cbMax,
2192 unsigned __LONG32* pcbActual
2193);
2194
2195JET_ERR JET_API JetGetLogInfoW(
2196 WCHAR* szz,
2197 unsigned __LONG32 cbMax,
2198 unsigned __LONG32* pcbActual
2199);
2200
2201#define JetGetLogInfo __MINGW_NAME_AW(JetGetLogInfo)
2202
2203JET_ERR JET_API JetGetLogInfoInstanceA(
2204 JET_INSTANCE instance,
2205 char* szz,
2206 unsigned __LONG32 cbMax,
2207 unsigned __LONG32* pcbActual
2208);
2209
2210JET_ERR JET_API JetGetLogInfoInstanceW(
2211 JET_INSTANCE instance,
2212 WCHAR* szz,
2213 unsigned __LONG32 cbMax,
2214 unsigned __LONG32* pcbActual
2215);
2216
2217#define JetGetLogInfoInstance __MINGW_NAME_AW(JetGetLogInfoInstance)
2218
2219JET_ERR JET_API JetGetLogInfoInstance2A(
2220 JET_INSTANCE instance,
2221 char* szz,
2222 unsigned __LONG32 cbMax,
2223 unsigned __LONG32* pcbActual,
2224 JET_LOGINFO_A* pLogInfo
2225);
2226
2227JET_ERR JET_API JetGetLogInfoInstance2W(
2228 JET_INSTANCE instance,
2229 WCHAR* szz,
2230 unsigned __LONG32 cbMax,
2231 unsigned __LONG32* pcbActual,
2232 JET_LOGINFO_W* pLogInfo
2233);
2234
2235#define JetGetLogInfoInstance2 __MINGW_NAME_AW(JetGetLogInfoInstance2)
2236
2237JET_ERR JET_API JetGetLS(
2238 JET_SESID sesid,
2239 JET_TABLEID tableid,
2240 JET_LS* pls,
2241 JET_GRBIT grbit
2242);
2243
2244JET_ERR JET_API JetGetObjectInfoA(
2245 JET_SESID sesid,
2246 JET_DBID dbid,
2247 JET_OBJTYP objtyp,
2248 const char* szContainerName,
2249 const char* szObjectName,
2250 void* pvResult,
2251 unsigned __LONG32 cbMax,
2252 unsigned __LONG32 InfoLevel
2253);
2254
2255JET_ERR JET_API JetGetObjectInfoW(
2256 JET_SESID sesid,
2257 JET_DBID dbid,
2258 JET_OBJTYP objtyp,
2259 const WCHAR* szContainerName,
2260 const WCHAR* szObjectName,
2261 void* pvResult,
2262 unsigned __LONG32 cbMax,
2263 unsigned __LONG32 InfoLevel
2264);
2265
2266#define JetGetObjectInfo __MINGW_NAME_AW(JetGetObjectInfo)
2267
2268JET_ERR JET_API JetGetRecordPosition(
2269 JET_SESID sesid,
2270 JET_TABLEID tableid,
2271 JET_RECPOS* precpos,
2272 unsigned __LONG32 cbRecpos
2273);
2274
2275#if (JET_VERSION >= 0x0600)
2276JET_ERR JET_API JetGetRecordSize(
2277 JET_SESID sesid,
2278 JET_TABLEID tableid,
2279 JET_RECSIZE* precsize,
2280 const JET_GRBIT grbit
2281);
2282#endif /* (JET_VERSION >= 0x0600) */
2283
2284JET_ERR JET_API JetGetSecondaryIndexBookmark(
2285 JET_SESID sesid,
2286 JET_TABLEID tableid,
2287 void* pvSecondaryKey,
2288 unsigned __LONG32 cbSecondaryKeyMax,
2289 unsigned __LONG32* pcbSecondaryKeyActual,
2290 void* pvPrimaryBookmark,
2291 unsigned __LONG32 cbPrimaryBookmarkMax,
2292 unsigned __LONG32* pcbPrimaryKeyActual,
2293 const JET_GRBIT grbit
2294);
2295
2296JET_ERR JET_API JetGetSystemParameterA(
2297 JET_INSTANCE instance,
2298 JET_SESID sesid,
2299 unsigned __LONG32 paramid,
2300 JET_API_PTR* plParam,
2301 JET_PSTR szParam,
2302 unsigned __LONG32 cbMax
2303);
2304
2305JET_ERR JET_API JetGetSystemParameterW(
2306 JET_INSTANCE instance,
2307 JET_SESID sesid,
2308 unsigned __LONG32 paramid,
2309 JET_API_PTR* plParam,
2310 JET_PWSTR szParam,
2311 unsigned __LONG32 cbMax
2312);
2313
2314#define JetGetSystemParameter __MINGW_NAME_AW(JetGetSystemParameter)
2315
2316JET_ERR JET_API JetGetTableColumnInfoA(
2317 JET_SESID sesid,
2318 JET_TABLEID tableid,
2319 const char* szColumnName,
2320 void* pvResult,
2321 unsigned __LONG32 cbMax,
2322 unsigned __LONG32 InfoLevel
2323);
2324
2325JET_ERR JET_API JetGetTableColumnInfoW(
2326 JET_SESID sesid,
2327 JET_TABLEID tableid,
2328 const WCHAR* szColumnName,
2329 void* pvResult,
2330 unsigned __LONG32 cbMax,
2331 unsigned __LONG32 InfoLevel
2332);
2333
2334#define JetGetTableColumnInfoW __MINGW_NAME_AW(JetGetTableColumnInfo)
2335
2336JET_ERR JET_API JetGetTableIndexInfoA(
2337 JET_SESID sesid,
2338 JET_TABLEID tableid,
2339 const char* szIndexName,
2340 void* pvResult,
2341 unsigned __LONG32 cbResult,
2342 unsigned __LONG32 InfoLevel
2343);
2344
2345JET_ERR JET_API JetGetTableIndexInfoW(
2346 JET_SESID sesid,
2347 JET_TABLEID tableid,
2348 const WCHAR* szIndexName,
2349 void* pvResult,
2350 unsigned __LONG32 cbResult,
2351 unsigned __LONG32 InfoLevel
2352);
2353
2354#define JetGetTableIndexInfo __MINGW_NAME_AW(JetGetTableIndexInfo)
2355
2356JET_ERR JET_API JetGetTableInfoA(
2357 JET_SESID sesid,
2358 JET_TABLEID tableid,
2359 void* pvResult,
2360 unsigned __LONG32 cbMax,
2361 unsigned __LONG32 InfoLevel
2362);
2363
2364JET_ERR JET_API JetGetTableInfoW(
2365 JET_SESID sesid,
2366 JET_TABLEID tableid,
2367 void* pvResult,
2368 unsigned __LONG32 cbMax,
2369 unsigned __LONG32 InfoLevel
2370);
2371
2372#define JetGetTableInfo __MINGW_NAME_AW(JetGetTableInfo)
2373
2374JET_ERR JET_API JetGetThreadStats(
2375 void* pvResult,
2376 unsigned __LONG32 cbMax
2377);
2378
2379JET_ERR JET_API JetGetTruncateLogInfoInstanceA(
2380 JET_INSTANCE instance,
2381 char* szz,
2382 unsigned __LONG32 cbMax,
2383 unsigned __LONG32* pcbActual
2384);
2385
2386JET_ERR JET_API JetGetTruncateLogInfoInstanceW(
2387 JET_INSTANCE instance,
2388 WCHAR* szz,
2389 unsigned __LONG32 cbMax,
2390 unsigned __LONG32* pcbActual
2391);
2392
2393JET_ERR JET_API JetGetVersion(
2394 JET_SESID sesid,
2395 unsigned __LONG32* pwVersion
2396);
2397
2398JET_ERR JET_API JetGotoBookmark(
2399 JET_SESID sesid,
2400 JET_TABLEID tableid,
2401 void* pvBookmark,
2402 unsigned __LONG32 cbBookmark
2403);
2404
2405JET_ERR JET_API JetGotoPosition(
2406 JET_SESID sesid,
2407 JET_TABLEID tableid,
2408 JET_RECPOS* precpos
2409);
2410
2411JET_ERR JET_API JetGotoSecondaryIndexBookmark(
2412 JET_SESID sesid,
2413 JET_TABLEID tableid,
2414 void* pvSecondaryKey,
2415 unsigned __LONG32 cbSecondaryKey,
2416 void* pvPrimaryBookmark,
2417 unsigned __LONG32 cbPrimaryBookmark,
2418 const JET_GRBIT grbit
2419);
2420
2421JET_ERR JET_API JetGrowDatabase(
2422 JET_SESID sesid,
2423 JET_DBID dbid,
2424 unsigned __LONG32 cpg,
2425 unsigned __LONG32* pcpgReal
2426);
2427
2428JET_ERR JET_API JetIdle(
2429 JET_SESID sesid,
2430 JET_GRBIT grbit
2431);
2432
2433JET_ERR JET_API JetIndexRecordCount(
2434 JET_SESID sesid,
2435 JET_TABLEID tableid,
2436 unsigned __LONG32* pcrec,
2437 unsigned __LONG32 crecMax
2438);
2439
2440JET_ERR JET_API JetInit(
2441 JET_INSTANCE* pinstance
2442);
2443
2444JET_ERR JET_API JetInit2(
2445 JET_INSTANCE* pinstance,
2446 JET_GRBIT grbit
2447);
2448
2449#if (JET_VERSION >= 0x0600)
2450JET_ERR JET_API JetInit3A(
2451 JET_INSTANCE* pinstance,
2452 JET_RSTINFO_A* prstInfo,
2453 JET_GRBIT grbit
2454);
2455
2456JET_ERR JET_API JetInit3W(
2457 JET_INSTANCE* pinstance,
2458 JET_RSTINFO_W* prstInfo,
2459 JET_GRBIT grbit
2460);
2461
2462#define JetInit3 __MINGW_NAME_AW(JetInit3)
2463#endif /*(JET_VERSION >= 0x0600)*/
2464
2465JET_ERR JET_API JetIntersectIndexes(
2466 JET_SESID sesid,
2467 JET_INDEXRANGE* rgindexrange,
2468 unsigned __LONG32 cindexrange,
2469 JET_RECORDLIST* precordlist,
2470 JET_GRBIT grbit
2471);
2472
2473JET_ERR JET_API JetMakeKey(
2474 JET_SESID sesid,
2475 JET_TABLEID tableid,
2476 const void* pvData,
2477 unsigned __LONG32 cbData,
2478 JET_GRBIT grbit
2479);
2480
2481JET_ERR JET_API JetMove(
2482 JET_SESID sesid,
2483 JET_TABLEID tableid,
2484 __LONG32 cRow,
2485 JET_GRBIT grbit
2486);
2487
2488JET_ERR JET_API JetOpenDatabaseA(
2489 JET_SESID sesid,
2490 const char* szFilename,
2491 const char* szConnect,
2492 JET_DBID* pdbid,
2493 JET_GRBIT grbit
2494);
2495
2496JET_ERR JET_API JetOpenDatabaseW(
2497 JET_SESID sesid,
2498 const WCHAR* szFilename,
2499 const WCHAR* szConnect,
2500 JET_DBID* pdbid,
2501 JET_GRBIT grbit
2502);
2503
2504#define JetOpenDatabase __MINGW_NAME_AW(JetOpenDatabase)
2505
2506JET_ERR JET_API JetOpenFileA(
2507 const char* szFileName,
2508 JET_HANDLE* phfFile,
2509 unsigned __LONG32* pulFileSizeLow,
2510 unsigned __LONG32* pulFileSizeHigh
2511);
2512
2513JET_ERR JET_API JetOpenFileW(
2514 const WCHAR* szFileName,
2515 JET_HANDLE* phfFile,
2516 unsigned __LONG32* pulFileSizeLow,
2517 unsigned __LONG32* pulFileSizeHigh
2518);
2519
2520#define JetOpenFile __MINGW_NAME_AW(JetOpenFile)
2521
2522JET_ERR JET_API JetOpenFileInstanceA(
2523 JET_INSTANCE instance,
2524 JET_PCSTR szFileName,
2525 JET_HANDLE* phfFile,
2526 unsigned __LONG32* pulFileSizeLow,
2527 unsigned __LONG32* pulFileSizeHigh
2528);
2529
2530JET_ERR JET_API JetOpenFileInstanceW(
2531 JET_INSTANCE instance,
2532 JET_PCWSTR szFileName,
2533 JET_HANDLE* phfFile,
2534 unsigned __LONG32* pulFileSizeLow,
2535 unsigned __LONG32* pulFileSizeHigh
2536);
2537
2538#define JetOpenFileInstance __MINGW_NAME_AW(JetOpenFileInstance)
2539
2540JET_ERR JET_API JetOpenTableA(
2541 JET_SESID sesid,
2542 JET_DBID dbid,
2543 const char* szTableName,
2544 const void* pvParameters,
2545 unsigned __LONG32 cbParameters,
2546 JET_GRBIT grbit,
2547 JET_TABLEID* ptableid
2548);
2549
2550JET_ERR JET_API JetOpenTableW(
2551 JET_SESID sesid,
2552 JET_DBID dbid,
2553 const WCHAR* szTableName,
2554 const void* pvParameters,
2555 unsigned __LONG32 cbParameters,
2556 JET_GRBIT grbit,
2557 JET_TABLEID* ptableid
2558);
2559
2560#define JetOpenTable __MINGW_NAME_AW(JetOpenTable)
2561
2562JET_ERR JET_API JetOpenTemporaryTable(
2563 JET_SESID sesid,
2564 JET_OPENTEMPORARYTABLE* popentemporarytable
2565);
2566
2567JET_ERR JET_API JetOpenTempTable(
2568 JET_SESID sesid,
2569 const JET_COLUMNDEF* prgcolumndef,
2570 unsigned __LONG32 ccolumn,
2571 JET_GRBIT grbit,
2572 JET_TABLEID* ptableid,
2573 JET_COLUMNID* prgcolumnid
2574);
2575
2576JET_ERR JET_API JetOpenTempTable2(
2577 JET_SESID sesid,
2578 const JET_COLUMNDEF* prgcolumndef,
2579 unsigned __LONG32 ccolumn,
2580 unsigned __LONG32 lcid,
2581 JET_GRBIT grbit,
2582 JET_TABLEID* ptableid,
2583 JET_COLUMNID* prgcolumnid
2584);
2585
2586JET_ERR JET_API JetOpenTempTable3(
2587 JET_SESID sesid,
2588 const JET_COLUMNDEF* prgcolumndef,
2589 unsigned __LONG32 ccolumn,
2590 JET_UNICODEINDEX* pidxunicode,
2591 JET_GRBIT grbit,
2592 JET_TABLEID* ptableid,
2593 JET_COLUMNID* prgcolumnid
2594);
2595
2596JET_ERR JET_API JetOSSnapshotAbort(
2597 const JET_OSSNAPID snapId,
2598 const JET_GRBIT grbit
2599);
2600
2601#if (JET_VERSION >= 0x0600)
2602JET_ERR JET_API JetOSSnapshotEnd(
2603 const JET_OSSNAPID snapId,
2604 const JET_GRBIT grbit
2605);
2606#endif /*(JET_VERSION >= 0x0600)*/
2607
2608JET_ERR JET_API JetOSSnapshotFreezeA(
2609 const JET_OSSNAPID snapId,
2610 unsigned __LONG32* pcInstanceInfo,
2611 JET_INSTANCE_INFO_A** paInstanceInfo,
2612 const JET_GRBIT grbit
2613);
2614
2615JET_ERR JET_API JetOSSnapshotFreezeW(
2616 const JET_OSSNAPID snapId,
2617 unsigned __LONG32* pcInstanceInfo,
2618 JET_INSTANCE_INFO_W** paInstanceInfo,
2619 const JET_GRBIT grbit
2620);
2621
2622#define JetOSSnapshotFreeze __MINGW_NAME_AW(JetOSSnapshotFreeze)
2623
2624#if (JET_VERSION >= 0x0600)
2625JET_ERR JET_API JetOSSnapshotGetFreezeInfoA(
2626 const JET_OSSNAPID snapId,
2627 unsigned __LONG32* pcInstanceInfo,
2628 JET_INSTANCE_INFO_A** paInstanceInfo,
2629 const JET_GRBIT grbit
2630);
2631
2632JET_ERR JET_API JetOSSnapshotGetFreezeInfoW(
2633 const JET_OSSNAPID snapId,
2634 unsigned __LONG32* pcInstanceInfo,
2635 JET_INSTANCE_INFO_W** paInstanceInfo,
2636 const JET_GRBIT grbit
2637);
2638#define JetOSSnapshotGetFreezeInfo __MINGW_NAME_AW(JetOSSnapshotGetFreezeInfo)
2639#endif /*(JET_VERSION >= 0x0600)*/
2640
2641JET_ERR JET_API JetOSSnapshotPrepare(
2642 JET_OSSNAPID* psnapId,
2643 const JET_GRBIT grbit
2644);
2645
2646#if (JET_VERSION >= 0x0600)
2647JET_ERR JET_API JetOSSnapshotPrepareInstance(
2648 JET_OSSNAPID snapId,
2649 JET_INSTANCE instance,
2650 const JET_GRBIT grbit
2651);
2652#endif /*(JET_VERSION >= 0x0600)*/
2653
2654JET_ERR JET_API JetOSSnapshotThaw(
2655 const JET_OSSNAPID snapId,
2656 const JET_GRBIT grbit
2657);
2658
2659#if (JET_VERSION >= 0x0600)
2660JET_ERR JET_API JetOSSnapshotTruncateLog(
2661 const JET_OSSNAPID snapId,
2662 const JET_GRBIT grbit
2663);
2664
2665JET_ERR JET_API JetOSSnapshotTruncateLogInstance(
2666 const JET_OSSNAPID snapId,
2667 JET_INSTANCE instance,
2668 const JET_GRBIT grbit
2669);
2670#endif /*(JET_VERSION >= 0x0600)*/
2671
2672JET_ERR JET_API JetPrepareUpdate(
2673 JET_SESID sesid,
2674 JET_TABLEID tableid,
2675 unsigned __LONG32 prep
2676);
2677
2678JET_ERR JET_API JetReadFile(
2679 JET_HANDLE hfFile,
2680 void* pv,
2681 unsigned __LONG32 cb,
2682 unsigned __LONG32* pcbActual
2683);
2684
2685JET_ERR JET_API JetReadFileInstance(
2686 JET_INSTANCE instance,
2687 JET_HANDLE hfFile,
2688 void* pv,
2689 unsigned __LONG32 cb,
2690 unsigned __LONG32* pcb
2691);
2692
2693JET_ERR JET_API JetRegisterCallback(
2694 JET_SESID sesid,
2695 JET_TABLEID tableid,
2696 JET_CBTYP cbtyp,
2697 JET_CALLBACK pCallback,
2698 void* pvContext,
2699 JET_HANDLE* phCallbackId
2700);
2701
2702JET_ERR JET_API JetRenameColumnA(
2703 JET_SESID sesid,
2704 JET_TABLEID tableid,
2705 JET_PCSTR szName,
2706 JET_PCSTR szNameNew,
2707 JET_GRBIT grbit
2708);
2709
2710JET_ERR JET_API JetRenameColumnW(
2711 JET_SESID sesid,
2712 JET_TABLEID tableid,
2713 JET_PCWSTR szName,
2714 JET_PCWSTR szNameNew,
2715 JET_GRBIT grbit
2716);
2717
2718JET_ERR JET_API JetRenameTableA(
2719 JET_SESID sesid,
2720 JET_DBID dbid,
2721 const char* szName,
2722 const char* szNameNew
2723);
2724
2725JET_ERR JET_API JetRenameTableW(
2726 JET_SESID sesid,
2727 JET_DBID dbid,
2728 const WCHAR* szName,
2729 const WCHAR* szNameNew
2730);
2731
2732JET_ERR JET_API JetResetSessionContext(
2733 JET_SESID sesid
2734);
2735
2736JET_ERR JET_API JetResetTableSequential(
2737 JET_SESID sesid,
2738 JET_TABLEID tableid,
2739 JET_GRBIT grbit
2740);
2741
2742JET_ERR JET_API JetRestoreA(
2743 JET_PCSTR sz,
2744 JET_PFNSTATUS pfn
2745);
2746
2747JET_ERR JET_API JetRestoreW(
2748 JET_PCWSTR sz,
2749 JET_PFNSTATUS pfn
2750);
2751
2752#define JetRestore __MINGW_NAME_AW(JetRestore)
2753
2754JET_ERR JET_API JetRestore2A(
2755 JET_PCSTR sz,
2756 JET_PCSTR szDest,
2757 JET_PFNSTATUS pfn
2758);
2759
2760JET_ERR JET_API JetRestore2W(
2761 JET_PCWSTR sz,
2762 JET_PCWSTR szDest,
2763 JET_PFNSTATUS pfn
2764);
2765
2766#define JetRestore2 __MINGW_NAME_AW(JetRestore2)
2767
2768JET_ERR JET_API JetRestoreInstanceA(
2769 JET_INSTANCE instance,
2770 JET_PCSTR sz,
2771 JET_PCSTR szDest,
2772 JET_PFNSTATUS pfn
2773);
2774
2775JET_ERR JET_API JetRestoreInstanceW(
2776 JET_INSTANCE instance,
2777 JET_PCWSTR sz,
2778 JET_PCWSTR szDest,
2779 JET_PFNSTATUS pfn
2780);
2781
2782#define JetRestoreInstance __MINGW_NAME_AW(JetRestoreInstance)
2783
2784JET_ERR JET_API JetRetrieveColumn(
2785 JET_SESID sesid,
2786 JET_TABLEID tableid,
2787 JET_COLUMNID columnid,
2788 void* pvData,
2789 unsigned __LONG32 cbData,
2790 unsigned __LONG32* pcbActual,
2791 JET_GRBIT grbit,
2792 JET_RETINFO* pretinfo
2793);
2794
2795JET_ERR JET_API JetRetrieveColumns(
2796 JET_SESID sesid,
2797 JET_TABLEID tableid,
2798 JET_RETRIEVECOLUMN* pretrievecolumn,
2799 unsigned __LONG32 cretrievecolumn
2800);
2801
2802JET_ERR JET_API JetRetrieveKey(
2803 JET_SESID sesid,
2804 JET_TABLEID tableid,
2805 void* pvData,
2806 unsigned __LONG32 cbMax,
2807 unsigned __LONG32* pcbActual,
2808 JET_GRBIT grbit
2809);
2810
2811JET_ERR JET_API JetRollback(
2812 JET_SESID sesid,
2813 JET_GRBIT grbit
2814);
2815
2816JET_ERR JET_API JetSeek(
2817 JET_SESID sesid,
2818 JET_TABLEID tableid,
2819 JET_GRBIT grbit
2820);
2821
2822JET_ERR JET_API JetSetColumn(
2823 JET_SESID sesid,
2824 JET_TABLEID tableid,
2825 JET_COLUMNID columnid,
2826 const void* pvData,
2827 unsigned __LONG32 cbData,
2828 JET_GRBIT grbit,
2829 JET_SETINFO* psetinfo
2830);
2831
2832JET_ERR JET_API JetSetColumnDefaultValueA(
2833 JET_SESID sesid,
2834 JET_DBID dbid,
2835 JET_PCSTR szTableName,
2836 JET_PCSTR szColumnName,
2837 const void* pvData,
2838 const unsigned __LONG32 cbData,
2839 const JET_GRBIT grbit
2840);
2841
2842JET_ERR JET_API JetSetColumnDefaultValueW(
2843 JET_SESID sesid,
2844 JET_DBID dbid,
2845 JET_PCWSTR szTableName,
2846 JET_PCWSTR szColumnName,
2847 const void* pvData,
2848 const unsigned __LONG32 cbData,
2849 const JET_GRBIT grbit
2850);
2851
2852#define JetSetColumnDefaultValue __MINGW_NAME_AW(JetSetColumnDefaultValue)
2853
2854JET_ERR JET_API JetSetColumns(
2855 JET_SESID sesid,
2856 JET_TABLEID tableid,
2857 JET_SETCOLUMN* psetcolumn,
2858 unsigned __LONG32 csetcolumn
2859);
2860
2861JET_ERR JET_API JetSetCurrentIndexA(
2862 JET_SESID sesid,
2863 JET_TABLEID tableid,
2864 const char* szIndexName
2865);
2866
2867JET_ERR JET_API JetSetCurrentIndexW(
2868 JET_SESID sesid,
2869 JET_TABLEID tableid,
2870 const WCHAR* szIndexName
2871);
2872
2873#define JetSetColumnDefaultValue __MINGW_NAME_AW(JetSetColumnDefaultValue)
2874
2875JET_ERR JET_API JetSetCurrentIndex2A(
2876 JET_SESID sesid,
2877 JET_TABLEID tableid,
2878 JET_PCSTR szIndexName,
2879 JET_GRBIT grbit
2880);
2881
2882JET_ERR JET_API JetSetCurrentIndex2W(
2883 JET_SESID sesid,
2884 JET_TABLEID tableid,
2885 JET_PCWSTR szIndexName,
2886 JET_GRBIT grbit
2887);
2888
2889#define JetSetColumnDefaultValue2 __MINGW_NAME_AW(JetSetColumnDefaultValue2)
2890
2891JET_ERR JET_API JetSetCurrentIndex3A(
2892 JET_SESID sesid,
2893 JET_TABLEID tableid,
2894 JET_PCSTR szIndexName,
2895 JET_GRBIT grbit,
2896 unsigned __LONG32 itagSequence
2897);
2898
2899JET_ERR JET_API JetSetCurrentIndex3W(
2900 JET_SESID sesid,
2901 JET_TABLEID tableid,
2902 JET_PCWSTR szIndexName,
2903 JET_GRBIT grbit,
2904 unsigned __LONG32 itagSequence
2905);
2906
2907#define JetSetColumnDefaultValue3 __MINGW_NAME_AW(JetSetColumnDefaultValue3)
2908
2909JET_ERR JET_API JetSetCurrentIndex4A(
2910 JET_SESID sesid,
2911 JET_TABLEID tableid,
2912 JET_PCSTR szIndexName,
2913 JET_INDEXID* pindexid,
2914 JET_GRBIT grbit,
2915 unsigned __LONG32 itagSequence
2916);
2917
2918JET_ERR JET_API JetSetCurrentIndex4W(
2919 JET_SESID sesid,
2920 JET_TABLEID tableid,
2921 JET_PCWSTR szIndexName,
2922 JET_INDEXID* pindexid,
2923 JET_GRBIT grbit,
2924 unsigned __LONG32 itagSequence
2925);
2926
2927#define JetSetCurrentIndex4 __MINGW_NAME_AW(JetSetCurrentIndex4)
2928
2929JET_ERR JET_API JetSetDatabaseSizeA(
2930 JET_SESID sesid,
2931 JET_PCSTR szDatabaseName,
2932 unsigned __LONG32 cpg,
2933 unsigned __LONG32* pcpgReal
2934);
2935
2936JET_ERR JET_API JetSetDatabaseSizeW(
2937 JET_SESID sesid,
2938 JET_PCWSTR szDatabaseName,
2939 unsigned __LONG32 cpg,
2940 unsigned __LONG32* pcpgReal
2941);
2942
2943#define JetSetDatabaseSize __MINGW_NAME_AW(JetSetDatabaseSize)
2944
2945JET_ERR JET_API JetSetIndexRange(
2946 JET_SESID sesid,
2947 JET_TABLEID tableidSrc,
2948 JET_GRBIT grbit
2949);
2950
2951JET_ERR JET_API JetSetLS(
2952 JET_SESID sesid,
2953 JET_TABLEID tableid,
2954 JET_LS ls,
2955 JET_GRBIT grbit
2956);
2957
2958JET_ERR JET_API JetSetSessionContext(
2959 JET_SESID sesid,
2960 JET_API_PTR ulContext
2961);
2962
2963JET_ERR JET_API JetSetSystemParameterA(
2964 JET_INSTANCE* pinstance,
2965 JET_SESID sesid,
2966 unsigned __LONG32 paramid,
2967 JET_API_PTR lParam,
2968 JET_PCSTR szParam
2969);
2970
2971JET_ERR JET_API JetSetSystemParameterW(
2972 JET_INSTANCE* pinstance,
2973 JET_SESID sesid,
2974 unsigned __LONG32 paramid,
2975 JET_API_PTR lParam,
2976 JET_PCWSTR szParam
2977);
2978
2979#define JetSetSystemParameter __MINGW_NAME_AW(JetSetSystemParameter)
2980
2981JET_ERR JET_API JetSetTableSequential(
2982 JET_SESID sesid,
2983 JET_TABLEID tableid,
2984 JET_GRBIT grbit
2985);
2986
2987JET_ERR JET_API JetStopBackup(void);
2988
2989JET_ERR JET_API JetStopBackupInstance(
2990 JET_INSTANCE instance
2991);
2992
2993JET_ERR JET_API JetStopService(void);
2994
2995JET_ERR JET_API JetStopServiceInstance(
2996 JET_INSTANCE instance
2997);
2998
2999JET_ERR JET_API JetTerm(
3000 JET_INSTANCE instance
3001);
3002
3003JET_ERR JET_API JetTerm2(
3004 JET_INSTANCE instance,
3005 JET_GRBIT grbit
3006);
3007
3008JET_ERR JET_API JetTruncateLog(void);
3009
3010JET_ERR JET_API JetTruncateLogInstance(
3011 JET_INSTANCE instance
3012);
3013
3014JET_ERR JET_API JetUnregisterCallback(
3015 JET_SESID sesid,
3016 JET_TABLEID tableid,
3017 JET_CBTYP cbtyp,
3018 JET_HANDLE hCallbackId
3019);
3020
3021JET_ERR JET_API JetUpdate(
3022 JET_SESID sesid,
3023 JET_TABLEID tableid,
3024 void* pvBookmark,
3025 unsigned __LONG32 cbBookmark,
3026 unsigned __LONG32* pcbActual
3027);
3028
3029JET_ERR JET_API JetUpdate2(
3030 JET_SESID sesid,
3031 JET_TABLEID tableid,
3032 void* pvBookmark,
3033 unsigned __LONG32 cbBookmark,
3034 unsigned __LONG32* pcbActual,
3035 const JET_GRBIT grbit
3036);
3037
3038#ifdef __cplusplus
3039}
3040#endif
3041#endif /*_INC_ESENT*/
Note: See TracBrowser for help on using the repository browser.