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