I understand that this is a terminal machine? ) Then it is best to install a hook (if a HID card reader) or it can be a com port, then we smoke docks to the card reader and read the data from the port, and disable the standard shel (replace explorer with your software). Next, you do not need edith, store data in rows (especially if you receive it through a hook). There are some good things about hooks with examples on DRKB.ru.
Checking card readers is not the length, and the symbol # 13, because they all complete their input (in the case of HID). If you have additional questions, please contact Skype (torch565), there is a software that works with magnetic cards and barcode readers, I’ll share it with you.