How to detect if media is inserted into a removable drive/card reader
问题 I have a card reader ( no memory stick is inserted ). When i insert into my compter it shows an empty drive in My Computer... Is it possible to know whether a drive is having a media ( sorry i am not sure how to call it ) or not... 回答1: I find the suggestion of MSalters to use IOCTL_STORAGE_CHECK_VERIFY very good. There are a small trick in the usage of IOCTL_STORAGE_CHECK_VERIFY . Before the usage of IOCTL code in the function DeviceIoControl one need to open the corresponding device with