Use CTRecord.GetRowid() method to retrieve the ROWID value for the current record. This is a read only property.
// retrieve the first record rowid
long rowid = ARecord.GetRowid();
TOCIndex