Page 1 of 1

0.85b2: Memory cards in card readers not detected

Posted: Sat Mar 25, 2017 10:06 am
by m.Th.
All card readers register in Windows several drives depending on how many card bays have.
Here is a picture of my card reader in order to settle what we are talking about:
https://www.amazon.com/Kingston-Digital ... B00VAGX6MW
(Very good model but nothing special in our discussion.)

However, while Windows Explorer detects the change, XnView MP does not.

How WinExplorer works?

When someone inserts a card then the MediaInserted Win OS event is triggered. The application must register itself via SHChangeNotifyRegister function (https://msdn.microsoft.com/en-us/librar ... S.85).aspx) in order to receive these events.
If the card is pulled out then the MediaRemoved event is triggered.

At the end, the application should de-register itself from the event chain by using SHChangeNotifyDeregister function.

A nice overview of the above steps is outlined at http://stackoverflow.com/questions/2420 ... s-messages