Answer:
A barcode scanner works as a keyboard input device. Where ever your cursor is on your computer screen, the data that you are scanning will appear. If you are looking to integrate this information into an application, this site might help http://www.idautomation.com/scanenable/