Using the winscard.dll PC/SC API in Visual Basic 6
Posted March 1st, 2009 by Ryan Olbe Visual Basic Projects 6 Comments »Here's some example code I wrote in July of 2008 that shows how a Visual Basic program can interact with a smart card reader using the winscard.dll PC/SC API. Most of the functions contained in winscard.dll I was able to get working except SCardTransmit which would always return ERROR_GEN_FAILURE (0x1F) or SCARD_E_COMM_DATA_LOST (0x8010002F) for some reason and I was never able to figure out why. If there's anyone out there who's interested in writing a VB implementation of the PC/SC API this would probably be a good place to start.

Recent Comments