Smart cards
Hey,I have some questions related to smart cards on Windows 7.At our company, we make software to read information from smart cards, such as national ID card, health insurance smart cards ...Recently we started testing on windows 7 and run into few issues.First issue: Smart Card Plug and PlayWhen we enter a card in the reader, windows say new hardware is found, but fail to install the driver. If our applications are running, they fail to read that card cause of this (probably cause the install driver take exclusive access to the card)We been able to use a "temporary" solution for this, by disable the smart card plug and play trough the group policy.Second issue: It's hard to explain customers how to use gpedit, so is there a way to automate this trough a script?In addition, is there anything developers should keep in mind for windows 7 when creating software that read smart cards?
October 27th, 2009 7:01pm

Obviously the Windows built-in smart card driver is not compatible with the device. Therefore if you would like to completely resolve this issue, Windows 7 compatible driver is needed. The following article can be helpful regarding smart card driver development. Smart Card Drivershttp://msdn.microsoft.com/en-us/library/ms894030.aspx If you would like to apply policy via script, you may include a batch file with the following command. Reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\ScPnP\ /v EnableScPnP /t REG_DWORD /d 0 Or open Notepad, enter the following contents. Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\ScPnP]"EnableScPnP"=dword:00000001 Save it as a *.reg file. Then customers just need to double-click on it to import the policy. If you have any software development questions, please discuss in our MSDN forum.Arthur Xie - MSFT
Free Windows Admin Tool Kit Click here and download it now
October 28th, 2009 1:17pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics