Пример #1
0
 public static extern int JetGetObjectInfo(
     IntPtr sesid,
     uint dbid,
     uint objtyp,
     string szContainerName,
     string szObjectName,
     [In][Out] ref NATIVE_OBJECTINFO objectinfo,
     uint cbMax,
     uint InfoLevel);
Пример #2
0
        public void Setup()
        {
            this.native = new NATIVE_OBJECTINFO()
            {
                cbStruct = (uint)Marshal.SizeOf(typeof(NATIVE_OBJECTINFO)),
                cPage    = 2,
                cRecord  = 3,
                flags    = 0x20000000,  // Template
                grbit    = 7,           // Updatable | Bookmark | Rollback
                objtyp   = 1,           // Table
            };

            this.managed = new JET_OBJECTINFO();
            this.managed.SetFromNativeObjectinfo(ref this.native);
        }
Пример #3
0
 public static extern int JetGetTableInfo(
     IntPtr sesid,
     IntPtr tableid,
     [Out] out NATIVE_OBJECTINFO pvResult,
     uint cbMax,
     uint infoLevel);