how cards.dll works