Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV
Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


System requests smart card reader power up and down continuously.

minhptaminhpta Member Posts: 15

Hello guys,

I've developed a virtual smart card reader driver. My driver can interaction with applications but if I let the driver alone(no application connect to), It has weird behaviours.
Since my driver tell the system that there is a card inserted to the reader, the system send IOCTL_SMARTCARD_POWER(SCARD_COLD_RESET) and IOCTL_SMARTCARD_POWER(SCARD_POWER_DOWN) continuously.

That put my driver run into the loop and consume the system's resource. I just don't want that.
I describe it's behaviour as bellow diagram.

After step #21, The system send IOCTL_SMARTCARD_IS_PRESENT again, the driver continue the loop at step #4.

Is there any wrong here?

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Writing WDF Drivers 7 Dec 2020 LIVE ONLINE
Internals & Software Drivers 25 Jan 2021 LIVE ONLINE
Developing Minifilters 8 March 2021 LIVE ONLINE