UI selection callback

You can call IUIDatabase::GetRecords and have it return an IRecordList of the currently selected references.

If you have the Record Number for the references you need to select you can use IDatabase::GetRecordID so you can then display those references in EndNote.