How to handle IOCTL_STORAGE_EJECT_MEDIA

Hello all,
I have a virtual disk which is mounted as a removable disk.When the user click the Eject from explorer,on IOCTL_STORAGE_EJECT_MEDIA i call IoDeleteSymbolicLink(&SymbolicLinkName).The problem is that the drive is moved from Devices with Removable Storage to Other section with a question mark on it ,instead of totaly removing from windows explorer.Please help.
TKS

>explorer,on IOCTL_STORAGE_EJECT_MEDIA i call IoDeleteSymbolicLink

Media eject surely does not affect device naming. Look at your SD card reader without a card in it.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

Maybe you should do to deal with the request for PNP, Example : IRP_MN_EJECT,IRP_MN_REMOVE_DEVICE …