Beispiel #1
0
 public static extern int JetGetTableIndexInfo(
     IntPtr sesid,
     IntPtr tableid,
     string szIndexName,
     [In][Out] ref NATIVE_INDEXLIST indexlist,
     uint cbResult,
     uint InfoLevel);
Beispiel #2
0
        public void Setup()
        {
            this.native = new NATIVE_INDEXLIST()
            {
                tableid             = (IntPtr)0x1000,
                cRecord             = 100,
                columnidindexname   = 0,
                columnidgrbitIndex  = 1,
                columnidcKey        = 2,
                columnidcEntry      = 3,
                columnidcPage       = 4,
                columnidcColumn     = 5,
                columnidiColumn     = 6,
                columnidcolumnid    = 7,
                columnidcoltyp      = 8,
                columnidCountry     = 9,
                columnidLangid      = 10,
                columnidCp          = 11,
                columnidCollate     = 12,
                columnidgrbitColumn = 13,
                columnidcolumnname  = 14,
                columnidLCMapFlags  = 15,
            };

            this.converted = new JET_INDEXLIST();
            this.converted.SetFromNativeIndexlist(this.native);
        }
Beispiel #3
0
 public static extern int JetGetIndexInfo(
     IntPtr sesid,
     uint dbid,
     string szTableName,
     string szIndexName,
     [In][Out] ref NATIVE_INDEXLIST result,
     uint cbResult,
     uint InfoLevel);
        public void Setup()
        {
#pragma warning disable 618 // It's OK to use Deprecated values in our tests.
            this.native = new NATIVE_INDEXLIST()
            {
                tableid            = (IntPtr)0x1000,
                cRecord            = 100,
                columnidindexname  = 0,
                columnidgrbitIndex = 1,
                columnidcKey       = 2,
                columnidcEntry     = 3,
                columnidcPage      = 4,
                columnidcColumn    = 5,
                columnidiColumn    = 6,
                columnidcolumnid   = 7,
                columnidcoltyp     = 8,

// Suppressing error that columnidCountry is deprecated.
#pragma warning disable 618
                columnidCountry = 9,
#pragma warning restore 618
                columnidLangid = 10,
                columnidCp     = 11,

// Suppressing error that columnidCollate is deprecated.
#pragma warning disable 618
                columnidCollate = 12,
#pragma warning restore 618
                columnidgrbitColumn = 13,
                columnidcolumnname  = 14,
                columnidLCMapFlags  = 15,
            };
#pragma warning restore 618

            this.converted = new JET_INDEXLIST();
            this.converted.SetFromNativeIndexlist(this.native);
        }