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); }
public static extern int JetGetTableColumnInfoW(IntPtr sesid, IntPtr tableid, ref uint pcolumnid, ref NATIVE_COLUMNBASE_WIDE columnbase, uint cbMax, uint InfoLevel);
public static extern int JetGetColumnInfoW(IntPtr sesid, uint dbid, string szTableName, ref uint pcolumnid, ref NATIVE_COLUMNBASE_WIDE columnbase, uint cbMax, uint InfoLevel);