public void Setup()
        {
            this.native = new NATIVE_COLUMNBASE
            {
                cbMax            = 1,
                coltyp           = unchecked ((uint)JET_coltyp.Text),
                columnid         = 2,
                cp               = unchecked ((ushort)JET_CP.Unicode),
                grbit            = unchecked ((uint)ColumndefGrbit.ColumnNotNULL),
                szBaseColumnName = "basecolumn",
                szBaseTableName  = "basetable",
            };

            this.nativeWide = new NATIVE_COLUMNBASE_WIDE
            {
                cbMax            = 1,
                coltyp           = unchecked ((uint)JET_coltyp.Text),
                columnid         = 2,
                cp               = unchecked ((ushort)JET_CP.Unicode),
                grbit            = unchecked ((uint)ColumndefGrbit.ColumnNotNULL),
                szBaseColumnName = "basecolumn",
                szBaseTableName  = "basetable",
            };

            this.managed     = new JET_COLUMNBASE(this.native);
            this.managedWide = new JET_COLUMNBASE(this.native);
        }
Ejemplo n.º 2
0
 public static extern int JetGetTableColumnInfoW(IntPtr sesid, IntPtr tableid, ref uint pcolumnid, ref NATIVE_COLUMNBASE_WIDE columnbase, uint cbMax, uint InfoLevel);
Ejemplo n.º 3
0
 public static extern int JetGetColumnInfoW(IntPtr sesid, uint dbid, string szTableName, ref uint pcolumnid, ref NATIVE_COLUMNBASE_WIDE columnbase, uint cbMax, uint InfoLevel);