Information

Information:

You develop a driver is mapping a logical drive in a image file raw.

If your logical drive is configured removable.
In the IOCTL command:
IOCTL_DISK_GET_MEDIA_TYPES:
IOCTL_STORAGE_GET_MEDIA_TYPES:
IOCTL_DISK_GET_DRIVE_GEOMETRY:
/ / IOCTL_CDROM_GET_DRIVE_GEOMETRY:
IOCTL_DISK_UPDATE_DRIVE_SIZE:
MediaType = RemoveableMedia
and you can not format to NTFS
It will always set MediaType to FixedMedia.

By cons in IOCTL_STORAGE_GET_HOTPLUG_INFO must take into account the logical drive removeable.