public void Setup() { this.native = new NATIVE_DBINFOMISC4 { dbinfo = new NATIVE_DBINFOMISC { ulVersion = Any.UInt32, ulUpdate = Any.UInt32, signDb = new NATIVE_SIGNATURE { logtimeCreate = Any.Logtime, ulRandom = Any.UInt32, }, dbstate = 1, lgposConsistent = Any.Lgpos, logtimeConsistent = Any.Logtime, logtimeAttach = Any.Logtime, lgposAttach = Any.Lgpos, logtimeDetach = Any.Logtime, lgposDetach = Any.Lgpos, signLog = new NATIVE_SIGNATURE { logtimeCreate = Any.Logtime, ulRandom = Any.UInt32, }, bkinfoFullPrev = Any.Bkinfo, bkinfoIncPrev = Any.Bkinfo, bkinfoFullCur = Any.Bkinfo, fShadowingDisabled = Any.UInt32, fUpgradeDb = Any.UInt32, dwMajorVersion = Any.UInt16, dwMinorVersion = Any.UInt16, dwBuildNumber = Any.UInt16, lSPNumber = Any.UInt16, cbPageSize = Any.UInt16, }, genMinRequired = Any.UInt16, genMaxRequired = Any.UInt16, logtimeGenMaxCreate = Any.Logtime, ulRepairCount = Any.UInt16, logtimeRepair = Any.Logtime, ulRepairCountOld = Any.UInt16, ulECCFixSuccess = Any.UInt16, logtimeECCFixSuccess = Any.Logtime, ulECCFixSuccessOld = Any.UInt16, ulECCFixFail = Any.UInt16, logtimeECCFixFail = Any.Logtime, ulECCFixFailOld = Any.UInt16, ulBadChecksum = Any.UInt16, logtimeBadChecksum = Any.Logtime, ulBadChecksumOld = Any.UInt16, genCommitted = Any.UInt16, bkinfoCopyPrev = Any.Bkinfo, bkinfoDiffPrev = Any.Bkinfo, }; this.managed = new JET_DBINFOMISC(); this.managed.SetFromNativeDbinfoMisc(ref this.native); }
public static extern int JetGetDatabaseInfo(IntPtr sesid, uint dbid, out NATIVE_DBINFOMISC4 dbinfomisc, uint cbMax, uint InfoLevel);
public static extern int JetGetDatabaseFileInfoW(string szFilename, out NATIVE_DBINFOMISC4 dbinfomisc, uint cbMax, uint InfoLevel);