I have a .NET application that uses WinSCard directly to communicate to a proprietary application on a smart card.
When a card is first inserted, Windows notifies the user it is searching for drivers and fails, which I would like to avoid.
I would rather not author a minidriver for my smart card because I have already written a managed library that performs all of the heavy lifting through WinSCard. Is there a way to tell Windows not to install a driver for that particular device?
我对它的了解不够,无法准确告诉您该怎么做,但是您需要安装一个没有关联驱动程序的 INF 文件(即您说的是“我正在处理此设备”)
@Paul-Betts is absolutely right and I spent some time trying to workout how to install a SmartCard Mini Driver for MIFARE DESFire cards as I was using PCSC directly and a card driver just wasn't required.
In the end I found a useful article that provided a Utility that would allow you to register specific cards against the null mini driver.
The provided files come with the source and two batch files
pcsc_no_minidriver_memory.cmd
disables every memory card (ATR constructed according to PC/SC v.2 specification for memory cards) pcsc_no_minidriver_well_known.cmd
disables some well-known contactless cards that do not have a minidriver (NXP Desfire, NXP Mifare Plus, various Calypso cards, …) It does come with a warning though;
Of course, use this software and the related scripts with care and make sure you really do understand what it does , as it may prevent your system to work correctly with your 20$-cryptographic card that do need its minidriver to work with CryptoAPI.
Try this to disable smart card Plug and Play in local Group Policy
On a client computer, click Start , type gpedit.msc
in the Search programs and files box, and then press Enter.
In the console tree under Computer Configuration , click Administrative Templates .
In the details pane, double-click Windows Components , and then double-click Smart Card .
Right-click Turn on Smart Card Plug and Play service , and then click Edit.
Click Disabled , and then click OK.
https://technet.microsoft.com/en-us/library/dd979547(v=ws.10).aspx
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.