Hi,
For a program I'm writing I need to detect the insertion/removal of
media from removable media devices, and for that I'm using the
WM_DEVICE_CHANGE Windows message. The problem is that while it works
fine with CD/DVD devices and USB flash drives, it doesn't notify me when
memory cards are inserted/removed from a card reader. The card reader
behaves like a CD-ROM drive in that the letter is allocated when the
reader is connected, then as cards are inserted their contents become
available.
I've tried different ways using the RegisterDeviceNotification API
without success. I could use polling of course but it doesn't seem to me
very efficient.
I'm sure this should be possible because the Windows Explorer does
somehow detect the changes.
Does anybody know of a sure way (user/kernel mode) to receive those
notifications?
Thanks for any hint.
Eduardo