/// <summary>
        /// Calculates the native version of the structure.
        /// </summary>
        /// <returns>The native version of the structure.</returns>
        internal NATIVE_DBINFOMISC GetNativeDbinfomisc()
        {
            NATIVE_DBINFOMISC native = new NATIVE_DBINFOMISC();

            unchecked
            {
                native.ulVersion          = (uint)this._ulVersion;
                native.ulUpdate           = (uint)this._ulUpdate;
                native.signDb             = this._signDb.GetNativeSignature();
                native.dbstate            = (uint)this._dbstate;
                native.lgposConsistent    = this._lgposConsistent;
                native.logtimeConsistent  = this._logtimeConsistent;
                native.logtimeAttach      = this._logtimeAttach;
                native.lgposAttach        = this._lgposAttach;
                native.logtimeDetach      = this._logtimeDetach;
                native.lgposDetach        = this._lgposDetach;
                native.signLog            = this._signLog.GetNativeSignature();
                native.bkinfoFullPrev     = this._bkinfoFullPrev;
                native.bkinfoIncPrev      = this._bkinfoIncPrev;
                native.bkinfoFullCur      = this._bkinfoFullCur;
                native.fShadowingDisabled = this._fShadowingDisabled ? 1u : 0u;
                native.fUpgradeDb         = this._fUpgradeDb ? 1u : 0u;
                native.dwMajorVersion     = (uint)this._dwMajorVersion;
                native.dwMinorVersion     = (uint)this._dwMinorVersion;
                native.dwBuildNumber      = (uint)this._dwBuildNumber;
                native.lSPNumber          = (uint)this._lSPNumber;
                native.cbPageSize         = (uint)this._cbPageSize;
            }

            return(native);
        }
 /// <summary>
 /// Sets the members of this object from a native object.
 /// </summary>
 /// <param name="native">The native object.</param>
 internal void SetFromNativeDbinfoMisc(ref NATIVE_DBINFOMISC native)
 {
     unchecked
     {
         this._ulVersion          = (int)native.ulVersion;
         this._ulUpdate           = (int)native.ulUpdate;
         this._signDb             = new JET_SIGNATURE(native.signDb);
         this._dbstate            = (JET_dbstate)native.dbstate;
         this._lgposConsistent    = native.lgposConsistent;
         this._logtimeConsistent  = native.logtimeConsistent;
         this._logtimeAttach      = native.logtimeAttach;
         this._lgposAttach        = native.lgposAttach;
         this._logtimeDetach      = native.logtimeDetach;
         this._lgposDetach        = native.lgposDetach;
         this._signLog            = new JET_SIGNATURE(native.signLog);
         this._bkinfoFullPrev     = native.bkinfoFullPrev;
         this._bkinfoIncPrev      = native.bkinfoIncPrev;
         this._bkinfoFullCur      = native.bkinfoFullCur;
         this._fShadowingDisabled = 0 != native.fShadowingDisabled;
         this._fUpgradeDb         = 0 != native.fUpgradeDb;
         this._dwMajorVersion     = (int)native.dwMajorVersion;
         this._dwMinorVersion     = (int)native.dwMinorVersion;
         this._dwBuildNumber      = (int)native.dwBuildNumber;
         this._lSPNumber          = (int)native.lSPNumber;
         this._cbPageSize         = (int)native.cbPageSize;
     }
 }