Re: Memory card reader insertion/removal notification
- From: "Maxim S. Shatskih" <maxim@xxxxxxxxxxxxxxxx>
- Date: Thu, 7 Jul 2005 22:02:59 +0400
Let's look. Card insert is a media insert, not device insert (unlike USB
flash drive).
CdRom.sys driver has some ways of signalling the OS about the media insert.
Maybe the card reader's driver does this too - some WM_DEVICECHANGE code is
IIRC about the media insert.
But, if the card reader's driver has no such thing (it should call the
routine named something like IoNotifyVolumeEvent) - then polling is the only
way.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com
"Eduardo Francos" <efrancos@xxxxxxxxxx> wrote in message
news:42cceeea$0$3140$8fcfb975@xxxxxxxxxxxxxxxxxx
> Maxim S. Shatskih wrote:
> > Polling once per second or 0.5 seconds is fine.
> >
>
> Right, it works. I could even go up to three to five seconds without
> loosing functionality but I'd really prefer a notification system
.
- Follow-Ups:
- Re: Memory card reader insertion/removal notification
- From: Eduardo Francos
- Re: Memory card reader insertion/removal notification
- References:
- Memory card reader insertion/removal notification
- From: Eduardo Francos
- Re: Memory card reader insertion/removal notification
- From: Maxim S. Shatskih
- Re: Memory card reader insertion/removal notification
- From: Eduardo Francos
- Memory card reader insertion/removal notification
- Prev by Date: Re: Driver verifier IO SYSTEM VERIFICATION ERROR 226
- Next by Date: Re: Driver verifier IO SYSTEM VERIFICATION ERROR 226
- Previous by thread: Re: Memory card reader insertion/removal notification
- Next by thread: Re: Memory card reader insertion/removal notification
- Index(es):
Relevant Pages
|