Hello all,
I have a virtual disk and when i mount it,my drive letter appears in Hard Disk Drives section.I want to change that to appear in Devices with Removable Storage.In others words to treat a fixed drive as a removable.Any ideas?
Thanks
Hello all,
I have a virtual disk and when i mount it,my drive letter appears in Hard Disk Drives section.I want to change that to appear in Devices with Removable Storage.In others words to treat a fixed drive as a removable.Any ideas?
Thanks
Make it report the media as removable.
I used FILE_DEVICE_MASS_STORAGE in IOCreateDevice and for IOCTL_DISK_GET_DRIVE_GEOMETRY_EX i changed from FixedMedia to RemovableMedia with no success.
DeviceObject->Characteristics |= FILE_REMOVABLE_MEDIA;
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com
wrote in message news:xxxxx@ntdev…
>I used FILE_DEVICE_MASS_STORAGE in IOCreateDevice and for IOCTL_DISK_GET_DRIVE_GEOMETRY_EX i changed from FixedMedia to RemovableMedia with no success.
>
Report RemovableMedia = TRUE in STORAGE_DEVICE_DESCRIPTOR of IOCTL_STORAGE_QUERY_PROPERTY
Igor Sharovar
Thanks ,you really helped me.