The type of virtual drive to create.
def get_storage_type() -> int: ... def set_storage_type(value: int) -> None: ...
storage_type = property(get_storage_type, set_storage_type)
This property specifies what type of virtual drive should be created. Windows Explorer uses this information to display the appropriate icon and apply the appropriate security settings for the virtual drive. Other applications may also make use of this information in various ways.
Possible values are:
|STGT_DISK||0x00000000||Create a regular disk device.|
|STGT_CDROM||0x00000001||Create a CD-ROM or DVD device.|
|STGT_DISK_PNP||0x00000003||Create a plug-and-play storage device.
Important: The CBFS Connect system driver must be installed in PnP mode for this option to function properly.
Note: This property cannot be changed after a virtual drive is created, and cannot be changed within events.
Plug-and-play Virtual Drives
Virtual drives created as plug-and-play (STGT_DISK_PNP) require that a "physical device" be visible in the Disk Manager snap-in of the Microsoft Management Console (mmc.exe). This can be accomplished by calling the add_mounting_point method and including the STGMP_MOUNT_MANAGER flag in the value passed for its Flags parameter.
In addition to supporting the STGC_REMOVABLE_MEDIA storage_characteristics flag, which specifies whether a virtual drive's media is removable or non-removable, plug-and-play virtual drives also support the STGC_ALLOW_EJECTION flag, which specifies whether a virtual drive itself is removable or non-removable.