Click here to Skip to main content
16,020,378 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I want to know which window message is generated when a volume is inserted, i.e when i insert card in memory card reader's slot an autorun dialog box appears it means there must be some message that is generated when i insert memory card in the slot, I have tried WM_DEVICEARRIVED and also WMI Win32_DeviceChangeEvent but they get fired when I insert the reader into USB slot not when i change the card, but window shows auto run dialog box i want to know that low level window message that is generated when i insert or remove card form slot not the whole card reader.

Posted

I believe you are looking for the WM_DEVICECHANGE Message[^]. Note that your application will not recieve this message by default. You will need to call the RegisterDeviceNotification Function[^] to register to receive device change notifications.

Best Wishes,
-David Delaune
 
Share this answer
 
Hello guy, you can try WM_DEVICECHANGE message, and RegisterDeviceNotification() may be useful, good luck![cool]
 
Share this answer
 


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900