Exemple #1
0
        public SuperLogTable(IntPtr pTable)
        {
            _pTable = pTable;
            if (_pTable != IntPtr.Zero)
            {
                VMDIR_SUPERLOG_TABLE table =
                    (VMDIR_SUPERLOG_TABLE)Marshal.PtrToStructure(
                        _pTable,
                        typeof(VMDIR_SUPERLOG_TABLE));

                long ptr = table.rows.ToInt64();
                for (int i = 0; i < table.numRows; i++, ptr += _rowSize)
                {
                    VMDIR_SUPERLOG_TABLE_ROW r =
                        (VMDIR_SUPERLOG_TABLE_ROW)Marshal.PtrToStructure(
                            new IntPtr(ptr),
                            typeof(VMDIR_SUPERLOG_TABLE_ROW));
                    _rows.Add(new SuperLogTableRow(r));
                }
            }
        }
Exemple #2
0
 public SuperLogTableRow(VMDIR_SUPERLOG_TABLE_ROW row)
 {
     _row = row;
 }
 public SuperLogTableRow(VMDIR_SUPERLOG_TABLE_ROW row)
 {
     _row = row;
 }