Article ID: 981665 - View products that this article applies to.
This code sample shows how to filter smart card reader Input/Output Controls (IOCTL) that retrieve the answer to reset (ATR) from a smart card reader driver by using the Windows 7 Windows Development Kit (WDK). This sample can be used to make sure that the warm reset ATR matches the cold reset ATR so that the warm reset ATR is in compliance with the WinSCard discovery mechanism in the following Smart Card Minidriver Specification:
The following file is available for download from the Microsoft Download Center:
Download the AtrFilter.exe package now.
Collapse this imageExpand this image
Release Date: March 3, 2010
For more information about how to download Microsoft support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.
(http://support.microsoft.com/kb/119591/ )How to obtain Microsoft support files from online services
The AtrFilter.exe self-extracting file contains the following files.
Collapse this tableExpand this table
Build the code sample
Install the code sample
Note This code sample was tested only on Windows 7.For more information about how to create an installation application that adds this service as an upper filter for all smart card readers, read the MSDN article, "Installing a Filter Driver." To do this, visit the following Web site:
Note A valid digital signature may be required to load this sample filter driver.
http://msdn.microsoft.com/en-us/library/ms791322.aspxTo manually add the driver service, you can run a command from an elevated command prompt. To do this, follow these steps: